Improve doc

master
Kai Labusch 2 weeks ago
parent 53824bf904
commit e74c9f0793

@ -268,7 +268,7 @@ def ner(model_id=None):
else: else:
token = token[2:] if token.startswith('##') else token token = token[2:] if token.startswith('##') else token
# if the output_text plus the current word and token is not a prefix of the original text, it means, # if the output_text plus the current word and token is not a prefix of the original text, it means, that
# we would miss characters. Therefore we take the missing characters from the original text at the current # we would miss characters. Therefore we take the missing characters from the original text at the current
# word position # word position
while not original_text.startswith(output_text + word + token) \ while not original_text.startswith(output_text + word + token) \

Loading…
Cancel
Save