Shuwei Hou commited on
Commit
6a467c4
·
1 Parent(s): 9e39004

morpheme_annotation_name

Browse files
Files changed (1) hide show
  1. morpheme.py +1 -1
morpheme.py CHANGED
@@ -221,7 +221,7 @@ def annotate_morpheme(session_id, base_dir="session_data"):
221
 
222
  for seg in segments:
223
  text = seg.get("text", "")
224
- seg["morpheme_annotations"] = extract_inflectional_morphemes(text)
225
 
226
  with open(json_file, "w", encoding="utf-8") as f:
227
  json.dump(data, f, ensure_ascii=False, indent=2)
 
221
 
222
  for seg in segments:
223
  text = seg.get("text", "")
224
+ seg["morphemes"] = extract_inflectional_morphemes(text)
225
 
226
  with open(json_file, "w", encoding="utf-8") as f:
227
  json.dump(data, f, ensure_ascii=False, indent=2)