Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#21743 - [python-nltk] NLTK data files not installed in a place the package knows about

Attached to Project: Community Packages
Opened by Dan McGee (toofishes) - Thursday, 18 November 2010, 23:24 GMT
Last edited by Thomas Dziedzic (tomd123) - Saturday, 27 November 2010, 06:47 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Thomas Dziedzic (tomd123)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
Resource 'taggers/maxent_treebank_pos_tagger/english.pickle' not
found. Please use the NLTK Downloader to obtain the resource:
>>> nltk.download().
Searched in:
- '/root/nltk_data'
- '/usr/share/nltk_data'
- '/usr/local/share/nltk_data'
- '/usr/lib/nltk_data'
- '/usr/local/lib/nltk_data'


Additional info:
It is actually located here:
/usr/share/nltk/data/taggers/maxent_treebank_pos_tagger/english.pickle

nltk/data vs nltk_data


Steps to reproduce:
nltk.pos_tag(sentence)
This task depends upon

Closed by  Thomas Dziedzic (tomd123)
Saturday, 27 November 2010, 06:47 GMT
Reason for closing:  Fixed
Additional comments about closing:  pkgrel 3
Comment by Dan McGee (toofishes) - Thursday, 18 November 2010, 23:29 GMT
dmcgee@server /usr/share
$ sudo ln -s nltk/data nltk_data

The horrible workaround; but it looks like the nltk package has some 'nltk.data.path' attribute you can set somewhere to help its lookup path? See the top of /usr/lib/python2.7/site-packages/nltk/data.py.

Loading...