Simple Flask App Using Spacy Nlp Hangs Intermittently
I'm working on a simple Flask app that will eventually turn into a simple REST API for doing named entity recognition using spaCy on a given text string. I have a simple prototype
Solution 1:
This appears to be a known issue in Spacy v2.0. The issue went away after I downgraded to Spacy v1.9.
For more details, see:
https://github.com/explosion/spaCy/issues/1571
and
Solution 2:
Try forcing the user of the main Python interpreter context as explained in:
Some third party C extension modules in Python don't work properly in sub interpreters and can hang or crash the process.
Solution 3:
Had the same problem with Django, downgrading to 1.10.0 solved the issue
Post a Comment for "Simple Flask App Using Spacy Nlp Hangs Intermittently"