correct representation when rep_failed
This commit is contained in:
parent
111512a901
commit
5bd0b4a064
2
wani.py
2
wani.py
|
@ -873,7 +873,7 @@ class Writer:
|
|||
return [word.id, word.text, word.lemma, word.msd]
|
||||
else:
|
||||
assert(word.representation is not None)
|
||||
failed = "ok" if word.representation_failed else "lemma_fallback"
|
||||
failed = "lemma_fallback" if word.representation_failed else "ok"
|
||||
return [word.lemma, word.representation, failed]
|
||||
|
||||
def sorted_rows(self, rows):
|
||||
|
|
Loading…
Reference in New Issue
Block a user