holzschu / Carnets

Carnets is a stand-alone Jupyter notebook server and client. Edit your notebooks on the go, even where there is no network.
https://holzschu.github.io/Carnets_Jupyter/
BSD 3-Clause "New" or "Revised" License
566 stars 34 forks source link

Add nltk #42

Open pernilong opened 5 years ago

pernilong commented 5 years ago

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

holzschu commented 5 years ago

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.

oleksis commented 4 years ago

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

danhesteves commented 4 years ago

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

holzschu commented 4 years ago

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"

danhesteves commented 4 years ago

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

holzschu commented 3 years ago

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.