cstr commited on
Commit
ea16568
·
verified ·
1 Parent(s): ee3dd9b

fix output

Browse files
Files changed (1) hide show
  1. app.py +5 -3
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
- # --- NEW: 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,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
- "expressions_by_sense": wikt_report.get("expressions_by_sense"),
2263
- "proverbs_by_sense": wikt_report.get("proverbs_by_sense")
 
 
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