diff --git a/presidio_evaluator/data_objects.py b/presidio_evaluator/data_objects.py index 2c028bc..c412bcf 100644 --- a/presidio_evaluator/data_objects.py +++ b/presidio_evaluator/data_objects.py @@ -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"]