Merge pull request #88 from ebotiab/fix-samples-translation
Fix translation of Input Sample tags
This commit is contained in:
Коммит
804b6084bc
|
@ -537,7 +537,7 @@ class InputSample(object):
|
|||
if span.entity_type in dictionary:
|
||||
span.entity_type = dictionary[span.entity_type]
|
||||
elif ignore_unknown:
|
||||
span.entity_value = "O"
|
||||
span.entity_type = "O"
|
||||
|
||||
# Remove spans if they were changed to "O"
|
||||
self.spans = [span for span in self.spans if span.entity_type != "O"]
|
||||
|
|
Загрузка…
Ссылка в новой задаче