1
0
Fork 0
mirror of https://github.com/qurator-spk/sbb_ner.git synced 2025-06-09 04:10:08 +02:00

Improve doc

This commit is contained in:
Kai Labusch 2024-11-12 14:40:15 +01:00
parent 53824bf904
commit e74c9f0793

View file

@ -268,7 +268,7 @@ def ner(model_id=None):
else:
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
# word position
while not original_text.startswith(output_text + word + token) \