Typo fix added missing ":" after if condition (#1419)

This commit is contained in:
Ranjan Singh
2024-07-22 14:29:05 +05:30
committed by GitHub
parent d46bacb20b
commit d85ba6e5a7

View File

@@ -173,7 +173,7 @@ class TransformersRecognizer(EntityRecognizer):
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: