Skip to content

Commit

Permalink
Fix bug with member order
Browse files Browse the repository at this point in the history
Closes #1054
  • Loading branch information
jmccrae committed Sep 10, 2024
1 parent 44d25fc commit a676052
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/wordnet_yaml.py
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ def save(wn, change_list=None):
if synset.lex_name not in synset_yaml:
synset_yaml[synset.lex_name] = {}
synset_yaml[synset.lex_name][synset.id[KEY_PREFIX_LEN:]] = s
s["members"] = entries_ordered(wn, synset.id)
s["members"] = [wn.id2entry[m].lemma.written_form for m in synset.members]

for key, synsets in synset_yaml.items():
if not change_list or key in change_list.lexfiles:
Expand Down

0 comments on commit a676052

Please sign in to comment.