correct representation when rep_failed

This commit is contained in:
Ozbolt Menegatti 2019-05-17 20:45:39 +02:00
parent 111512a901
commit 5bd0b4a064

View File

@ -873,7 +873,7 @@ class Writer:
return [word.id, word.text, word.lemma, word.msd] return [word.id, word.text, word.lemma, word.msd]
else: else:
assert(word.representation is not None) 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] return [word.lemma, word.representation, failed]
def sorted_rows(self, rows): def sorted_rows(self, rows):