-
Hey, Im trying to create an analyzer that that uses both deny list and hf model: HF model:
Deny lists:
Combine into single analyzer:
When trying to use both registry and nlp_engine to create an AnalyzerEngine, the analyzer uses only the Deny-List. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi, when you create a analyzer = AnalyzerEngine(
nlp_engine=nlp_engine,
supported_languages=["en"]
)
analyzer.registry.add_recognizers_from_yaml(yaml_file) |
Beta Was this translation helpful? Give feedback.
Hi, when you create a
RecognizerRegistry
and add recognizers from file, only these recognizers would be used.You can either call
registry.load_predefined_recognizers()
yourself (which would include the transformers recognizer), or add the new recognizer at a later stage: