diff --git a/docs/samples/python/transformers_recognizer/transformer_recognizer.py b/docs/samples/python/transformers_recognizer/transformer_recognizer.py index f7d8b11b5..02d9bc359 100644 --- a/docs/samples/python/transformers_recognizer/transformer_recognizer.py +++ b/docs/samples/python/transformers_recognizer/transformer_recognizer.py @@ -173,7 +173,7 @@ def analyze( for res in ner_results: res["entity_group"] = self.__check_label_transformer(res["entity_group"]) - if not res["entity_group"] or res["entity_group"] not in entities + if not res["entity_group"] or res["entity_group"] not in entities: continue if res["entity_group"] == self.id_entity_name: