Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Name Entity Recognition] Webapp: OSError: [E050] Can't find model 'fr'. #117

Open
idrissbachali opened this issue Mar 13, 2019 · 0 comments

Comments

@idrissbachali
Copy link

When i run app.py with french spacy ,i got this result

python app.py
Traceback (most recent call last):
File "app.py", line 7, in
nlp = spacy.load('fr')
File "C:\Users\IBL\AppData\Local\Programs\Python\Python37-32\lib\site-packages\spacy_init_.py", line 21, in load
return util.load_model(name, **overrides)
File "C:\Users\IBL\AppData\Local\Programs\Python\Python37-32\lib\site-packages\spacy\util.py", line 119, in load_model
raise IOError(Errors.E050.format(name=name))
OSError: [E050] Can't find model 'fr'. It doesn't seem to be a shortcut link, a Python package or a valid path to a data directory.

i don't understand where is the error !!

i m running within python this command line
import spacy
from flask import request
from spacy import displacy

nlp = spacy.load('fr_core_news_md')

@app.route('/run_NER')
def run_NER():
text = request.args.get('input', '')

doc = nlp(text)

html = displacy.render(doc, style='ent', page=False)
return json.dumps(html)

so,i can't reach localhost !!please help me

@du-phan du-phan changed the title problem with app.py [Name Entity Recognition] Webapp: OSError: [E050] Can't find model 'fr'. Oct 21, 2019
@du-phan du-phan self-assigned this Oct 21, 2019
@du-phan du-phan removed their assignment Jan 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants