mirror of
https://github.com/qurator-spk/sbb_ner.git
synced 2025-06-08 11:50:16 +02:00
fix NER bug;parallelize ner tool
This commit is contained in:
parent
6c76ce13f1
commit
014738cb3f
1 changed files with 1 additions and 1 deletions
|
@ -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'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue