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

Resource averaged_perceptron_tagger not found. #1

Closed
mrmrn opened this issue Jan 4, 2018 · 1 comment
Closed

Resource averaged_perceptron_tagger not found. #1

mrmrn opened this issue Jan 4, 2018 · 1 comment
Assignees

Comments

@mrmrn
Copy link

mrmrn commented Jan 4, 2018

hi, I installed requirements one by one, afterall it gaves me this error:
marn@mint18 ~/c/t/T/python> python CLAAS_public.py
Traceback (most recent call last):
File "CLAAS_public.py", line 70, in
tagger = PerceptronTagger()
File "/usr/local/lib/python2.7/dist-packages/nltk/tag/perceptron.py", line 140, in init
AP_MODEL_LOC = 'file:'+str(find('taggers/averaged_perceptron_tagger/'+PICKLE))
File "/usr/local/lib/python2.7/dist-packages/nltk/data.py", line 673, in find
raise LookupError(resource_not_found)
LookupError:


Resource averaged_perceptron_tagger not found.
Please use the NLTK Downloader to obtain the resource:

import nltk
nltk.download('averaged_perceptron_tagger')

Searched in:
- '/home/marn/nltk_data'
- '/usr/share/nltk_data'
- '/usr/local/share/nltk_data'
- '/usr/lib/nltk_data'
- '/usr/local/lib/nltk_data'
- '/usr/nltk_data'
- '/usr/lib/nltk_data'


@vivekkalyanarangan30
Copy link
Owner

Like the error suggests, please download the averaged_perceptron_tagger by typing nltk.download() in the python console and looking for it! Closing as it's just an nltk dependency issue

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