Ressource U'Tokenizer/Punkt/English.Pickle 'nicht gefunden

Post a reply

Smilies
:) :( :oops: :chelo: :roll: :wink: :muza: :sorry: :angel: :read: *x) :clever:
View more smilies

BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Ressource U'Tokenizer/Punkt/English.Pickle 'nicht gefunden

by Anonymous » 20 Aug 2025, 02:44

mein Code: < /p>

import nltk.data
tokenizer = nltk.data.load('nltk:tokenizers/punkt/english.pickle')
< /code>

Fehlermeldung: < /p>

[ec2-user@ip-172-31-31-31 sentiment]$ python mapper_local_v1.0.py
Traceback (most recent call last):
File "mapper_local_v1.0.py", line 16, in

tokenizer = nltk.data.load('nltk:tokenizers/punkt/english.pickle')

File "/usr/lib/python2.6/site-packages/nltk/data.py", line 774, in load

opened_resource = _open(resource_url)

File "/usr/lib/python2.6/site-packages/nltk/data.py", line 888, in _open

return find(path_, path + ['']).open()

File "/usr/lib/python2.6/site-packages/nltk/data.py", line 618, in find

raise LookupError(resource_not_found)

LookupError:

Resource u'tokenizers/punkt/english.pickle' not found. Please
use the NLTK Downloader to obtain the resource:

>>>nltk.download()

Searched in:
- '/home/ec2-user/nltk_data'
- '/usr/share/nltk_data'
- '/usr/local/share/nltk_data'
- '/usr/lib/nltk_data'
- '/usr/local/lib/nltk_data'
- u''
< /code>

Ich versuche, dieses Programm in UNIX -Maschine auszuführen: < /p>

Gemäß der Fehlermeldung habe ich von meinem Unix -Computer in Python Shell angemeldet, dann habe ich die folgenden Befehle verwendet: < /p>

import nltk
nltk.download()
< /code>

Und dann habe ich alle verfügbaren Dinge mit D-Down-Loader- und L-Listenoptionen heruntergeladen, aber das Problem bleibt bestehen.>

Top