Skip to content

How to create analyzer combining hf model and deny list? #1378

Answered by omri374
nogaeps asked this question in Q&A
Discussion options

You must be logged in to vote

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:

analyzer = AnalyzerEngine(
    nlp_engine=nlp_engine,
    supported_languages=["en"]
)

analyzer.registry.add_recognizers_from_yaml(yaml_file)

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@nogaeps
Comment options

@omri374
Comment options

Answer selected by nogaeps
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants