diff --git a/ocrd_calamari/recognize.py b/ocrd_calamari/recognize.py index ceadb88..d7d2581 100644 --- a/ocrd_calamari/recognize.py +++ b/ocrd_calamari/recognize.py @@ -76,7 +76,7 @@ class CalamariRecognize(Processor): line_text = prediction.sentence line_conf = prediction.avg_char_probability - line.add_TextEquiv(TextEquivType(Unicode=line_text, conf=line_conf)) + line.set_TextEquiv([TextEquivType(Unicode=line_text, conf=line_conf)]) _page_update_higher_textequiv_levels('line', pcgts)