1
0
Fork 0
mirror of https://github.com/qurator-spk/sbb_ner.git synced 2025-06-08 03:40:31 +02:00

fix NER bug;parallelize ner tool

This commit is contained in:
Kai Labusch 2019-11-25 09:37:02 +01:00
parent 6c76ce13f1
commit 014738cb3f

View file

@ -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'