Unable to use stanza as NlpEngineProvider
See original GitHub issueDescribe the bug I am trying to use stanza instead of spacy as NlpEngineProvider. While doing so I am getting error as Wrong NLP engine configuration
To Reproduce
Steps to reproduce the behavior:
from presidio_analyzer.nlp_engine import NlpEngineProvider configuration = { "nlp_engine_name": "stanza", "models": [{"lang_code": "en", "model_name": "OntoNotes"}], }
provider = NlpEngineProvider() provider.nlp_engines
returns {‘spacy’: presidio_analyzer.nlp_engine.spacy_nlp_engine.SpacyNlpEngine}
It only has spacy in it, hence while trying with stanza it gives Key error
Issue Analytics
- State:
- Created 2 years ago
- Comments:9 (4 by maintainers)
Top Results From Across the Web
Error attempting to use Stanza engine #726 - GitHub
Creating the engine fails with a Wrong NLP engine configuration error. Using spaCy succeeds with the same approach (2nd code example below). Is ......
Read more >Customizing the NLP models in Presidio Analyzer
Presidio can currently use one NLP model per language. Leverage frameworks other than spaCy, Stanza and transformers for ML based PII detection. In...
Read more >Stanza Stanford NLP: cannot import name 'StanzaLanguage ...
I think you've installed newest spacy-stanza but you're trying to use it with older spaCy: As of v1.0.0 spacy-stanza is only compatible with ......
Read more >presidio - bytemeta
Unable to use stanza as NlpEngineProvider · New feature - support passwords recognition · Issue with multi-line input · Feature: Support to Transformers...
Read more >Introducing Stanza: how to download language models and ...
In this video, I will introduce you to the Stanza natural language processing library for Python, ... Your browser can't play this video....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thanks, it worked now! Followed these steps
I installed that and it threw a new error related to stanza. Stating that, stanza has no attribute download. Let me try fixing it.