From d85ba6e5a77ace499bd024a0f98824ca7fb7be8c Mon Sep 17 00:00:00 2001 From: Ranjan Singh <34796285+ranjandsingh@users.noreply.github.com> Date: Mon, 22 Jul 2024 14:29:05 +0530 Subject: [PATCH] Typo fix added missing ":" after if condition (#1419) --- .../python/transformers_recognizer/transformer_recognizer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: