From 014738cb3fc547b3c41f050adb72f84b9b7ebb78 Mon Sep 17 00:00:00 2001 From: Kai Labusch Date: Mon, 25 Nov 2019 09:37:02 +0100 Subject: [PATCH] fix NER bug;parallelize ner tool --- qurator/sbb_ner/webapp/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qurator/sbb_ner/webapp/app.py b/qurator/sbb_ner/webapp/app.py index e474d04..f3a265d 100644 --- a/qurator/sbb_ner/webapp/app.py +++ b/qurator/sbb_ner/webapp/app.py @@ -254,7 +254,7 @@ def ner(model_id): for (tokens, word_predictions), (input_sentence, _) in zip(prediction, sentences): - original_text = "".join(input_sentence) + original_text = "".join(input_sentence).replace(" ", "") word = '' last_prediction = 'O'