Skip to content

Commit

Permalink
Merge pull request #88 from ebotiab/fix-samples-translation
Browse files Browse the repository at this point in the history
Fix translation of Input Sample tags
  • Loading branch information
omri374 committed Nov 13, 2023
2 parents e5d2e57 + 60907b1 commit 804b608
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion presidio_evaluator/data_objects.py
Expand Up @@ -537,7 +537,7 @@ def translate_input_sample_tags(self, dictionary=None, ignore_unknown=True):
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"]
Expand Down

0 comments on commit 804b608

Please sign in to comment.