more correct interpretation of BERT tokens

pull/2/head
Kai Labusch 5 years ago
parent 29eb154fb8
commit 5b218430dc

@ -236,6 +236,9 @@ def ner(model_id=None):
word += original_text[orig_pos]
if word_pred != 'X':
last_prediction = word_pred
continue
if not token.startswith('##') and word_pred == 'X':

Loading…
Cancel
Save