Carnets icon indicating copy to clipboard operation
Carnets copied to clipboard

Add nltk

Open pernilong opened this issue 4 years ago • 6 comments

Please add nltk and configure nltk download to a directory with write permission. Thx.

pernilong avatar Aug 06 '19 01:08 pernilong

Hi, !pip install nltk appears to work. Inside nltk.download(), you can configure nltk to download to any directory you like. I would recommend Documents/nltk_data.

holzschu avatar Sep 30 '19 15:09 holzschu

NLTK install and download resources to data path using Carnets: https://oleksis.github.io/jupyter/nltk/nlp/python/jupyter/carnets/2020/04/06/nltk-install-download-add-resource-data-path.html

oleksis avatar Apr 07 '20 01:04 oleksis

Hi, I’m getting an error message trying to install NLTK. Any thoughts on how I could get it done correctly? (See screen shot below). Thanks! 8521EEF8-CB6F-4A12-A5F3-C6A7025E20BE

danhesteves avatar Jun 01 '20 15:06 danhesteves

Hi, the error message in itself is: nltk 3.5 requires regex, and regex has a C component, so it failed at the compilation step by saying "clang is not available for iOS".

The solution is to go back to the previous version with "!pip install nltk==3.4"

holzschu avatar Jun 01 '20 17:06 holzschu

@holzschu great, it worked now. Thanks! Btw, great app!

danhesteves avatar Jun 01 '20 17:06 danhesteves

Hi, the latest TestFlight version has nltk (3.6.2), if you want to test: https://testflight.apple.com/join/yevwlUs1

You might need to uninstall your own nltk, if you installed it ("pip uninstall nltk -y"). User-installed packages have precedence over system-installed, even with a lower version number.

holzschu avatar May 09 '21 15:05 holzschu