Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to config nltk data directory from code?

How to config nltk data directory from code?

like image 898
Juanjo Conti Avatar asked Aug 19 '10 13:08

Juanjo Conti


People also ask

Where do I put NLTK data?

Command line installation If necessary, run the download command from an administrator account, or using sudo. The recommended system location is C:\nltk_data (Windows); /usr/local/share/nltk_data (Mac); and /usr/share/nltk_data (Unix).

How do I find the NLTK path?

On Windows 10, the default destination is either C:\Users\narae\nltk_data or C:\Users\narae\AppData\Roaming\nltk_data, but you can specify a different directory before downloading. Internally, NLTK keeps a list of places where it looks for its data: nltk. data. path.


1 Answers

Just change items of nltk.data.path, it's a simple list.

like image 194
Tim McNamara Avatar answered Sep 19 '22 10:09

Tim McNamara