Spaces:
Running
Running
fix output
Browse files
app.py
CHANGED
|
@@ -2249,7 +2249,7 @@ def _analyze_word_with_wiktionary(word: str, top_n: int) -> Dict[str, Any]:
|
|
| 2249 |
"entry_tags": wikt_report.get("entry_tags"),
|
| 2250 |
"entry_categories": wikt_report.get("entry_categories"),
|
| 2251 |
|
| 2252 |
-
#
|
| 2253 |
"entry_notes": wikt_report.get("entry_notes"),
|
| 2254 |
"other_pos": wikt_report.get("other_pos"),
|
| 2255 |
"raw_tags": wikt_report.get("raw_tags"),
|
|
@@ -2259,8 +2259,10 @@ def _analyze_word_with_wiktionary(word: str, top_n: int) -> Dict[str, Any]:
|
|
| 2259 |
"holonyms": wikt_report.get("holonyms"),
|
| 2260 |
"meronyms": wikt_report.get("meronyms"),
|
| 2261 |
"coordinate_terms": wikt_report.get("coordinate_terms"),
|
| 2262 |
-
|
| 2263 |
-
"
|
|
|
|
|
|
|
| 2264 |
}
|
| 2265 |
}
|
| 2266 |
|
|
|
|
| 2249 |
"entry_tags": wikt_report.get("entry_tags"),
|
| 2250 |
"entry_categories": wikt_report.get("entry_categories"),
|
| 2251 |
|
| 2252 |
+
# Pass through all new fields from the full DB ---
|
| 2253 |
"entry_notes": wikt_report.get("entry_notes"),
|
| 2254 |
"other_pos": wikt_report.get("other_pos"),
|
| 2255 |
"raw_tags": wikt_report.get("raw_tags"),
|
|
|
|
| 2259 |
"holonyms": wikt_report.get("holonyms"),
|
| 2260 |
"meronyms": wikt_report.get("meronyms"),
|
| 2261 |
"coordinate_terms": wikt_report.get("coordinate_terms"),
|
| 2262 |
+
# We are now correctly getting the data we queried earlier.
|
| 2263 |
+
"expressions": wikt_report.get("expressions"),
|
| 2264 |
+
"proverbs": wikt_report.get("proverbs")
|
| 2265 |
+
|
| 2266 |
}
|
| 2267 |
}
|
| 2268 |
|