From 60907b124be931186c428595d59a6dd5c954bfeb Mon Sep 17 00:00:00 2001 From: "enrique.botia" Date: Mon, 13 Nov 2023 13:28:50 +0100 Subject: [PATCH] Fix translation of Input Sample tags --- presidio_evaluator/data_objects.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"]