Spaces:
Runtime error
Runtime error
arogeriogel
commited on
including metadata
Browse files
app.py
CHANGED
@@ -102,7 +102,7 @@ def analyze_text():
|
|
102 |
|
103 |
|
104 |
def include_manual_input(analyze_results):
|
105 |
-
analyze_results_extended=
|
106 |
logging.info(
|
107 |
f"analyse results before adding extra words: {analyze_results}\n"
|
108 |
)
|
@@ -113,10 +113,14 @@ def include_manual_input(analyze_results):
|
|
113 |
for entry in index_entries:
|
114 |
start=entry[0]
|
115 |
end=entry[1]
|
116 |
-
|
|
|
117 |
logging.info(
|
118 |
f"analyse results after adding allowed words: {analyze_results_extended}\n"
|
119 |
)
|
|
|
|
|
|
|
120 |
return analyze_results_extended
|
121 |
|
122 |
def exclude_manual_input(analyze_results):
|
|
|
102 |
|
103 |
|
104 |
def include_manual_input(analyze_results):
|
105 |
+
analyze_results_extended=analyze_results
|
106 |
logging.info(
|
107 |
f"analyse results before adding extra words: {analyze_results}\n"
|
108 |
)
|
|
|
113 |
for entry in index_entries:
|
114 |
start=entry[0]
|
115 |
end=entry[1]
|
116 |
+
|
117 |
+
analyze_results_extended.append({"type": "MANUAL ADD", "start": start, "end": end, "score": 1.0})
|
118 |
logging.info(
|
119 |
f"analyse results after adding allowed words: {analyze_results_extended}\n"
|
120 |
)
|
121 |
+
logging.info(
|
122 |
+
f"type of entries in results: {type(analyze_results[0])}\n"
|
123 |
+
)
|
124 |
return analyze_results_extended
|
125 |
|
126 |
def exclude_manual_input(analyze_results):
|