question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to use stanza as NlpEngineProvider

See original GitHub issue

Describe 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:closed
  • Created 2 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
Subrat08commented, Jan 10, 2022

Thanks, it worked now! Followed these steps

  1. Uninstalled and re-installed stanza and spacy-stanza packages.
  2. Restarted the kernel
  3. Re-ran the code provided by you
0reactions
Subrat08commented, Jan 10, 2022

I installed that and it threw a new error related to stanza. Stating that, stanza has no attribute download. Let me try fixing it.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found