Spaces:
Sleeping
Sleeping
Michela
commited on
Commit
·
4bd560f
1
Parent(s):
52d525a
debugging path continued
Browse files
app.py
CHANGED
|
@@ -7,7 +7,7 @@ import os
|
|
| 7 |
# Get script's directory
|
| 8 |
script_dir = os.path.dirname(os.path.abspath(__file__))
|
| 9 |
|
| 10 |
-
### Debugging ###
|
| 11 |
# Construct the full path to the CSV file
|
| 12 |
file_path = os.path.join(script_dir, "data/retrieval_results/sonnini_original_ocr/i_onit-test-index-sonnini-q_Pferd-Pferde.csv")
|
| 13 |
|
|
@@ -17,12 +17,12 @@ print(f"File exists? {os.path.exists(file_path)}")
|
|
| 17 |
|
| 18 |
if not os.path.exists(file_path):
|
| 19 |
raise FileNotFoundError(f"File not found at: {file_path}")
|
| 20 |
-
####
|
| 21 |
|
| 22 |
# Import results
|
| 23 |
-
results_clean = pd.read_csv(
|
| 24 |
-
results_prep = pd.read_csv(
|
| 25 |
-
results_orig = pd.read_csv(
|
| 26 |
|
| 27 |
# Drop 'text_prep' from results_orig
|
| 28 |
results_clean.drop(columns=['text_prep'], inplace=True)
|
|
|
|
| 7 |
# Get script's directory
|
| 8 |
script_dir = os.path.dirname(os.path.abspath(__file__))
|
| 9 |
|
| 10 |
+
'''### Debugging ###
|
| 11 |
# Construct the full path to the CSV file
|
| 12 |
file_path = os.path.join(script_dir, "data/retrieval_results/sonnini_original_ocr/i_onit-test-index-sonnini-q_Pferd-Pferde.csv")
|
| 13 |
|
|
|
|
| 17 |
|
| 18 |
if not os.path.exists(file_path):
|
| 19 |
raise FileNotFoundError(f"File not found at: {file_path}")
|
| 20 |
+
####'''
|
| 21 |
|
| 22 |
# Import results
|
| 23 |
+
results_clean = pd.read_csv("../data/retrieval_results/sonnini_cleaned/i_onit-sonnini-DHd2025-clean-q_Pferd, Pferde.csv").head(100)
|
| 24 |
+
results_prep = pd.read_csv("../data/retrieval_results/sonnini_llm_corrected/i_onit-sonnini-DHd2025-prep-q_Pferd, Pferde.csv").head(100)
|
| 25 |
+
results_orig = pd.read_csv("../data/retrieval_results/sonnini_original_ocr/i_onit-test-index-sonnini-q_Pferd-Pferde.csv").head(100)
|
| 26 |
|
| 27 |
# Drop 'text_prep' from results_orig
|
| 28 |
results_clean.drop(columns=['text_prep'], inplace=True)
|