From 6d2e15b623a475588bc7b246d88806bd90ee37dc Mon Sep 17 00:00:00 2001 From: "Gerber, Mike" Date: Fri, 27 Sep 2019 14:10:46 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Overwrite=20text=20if=20it=20exi?= =?UTF-8?q?sts?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ocrd_calamari/recognize.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)