nltk Manual Data Download Python 3.6

174 views
Skip to first unread message

hossein.abdoll...@verizonwireless.com

unread,
Dec 21, 2017, 4:52:55 PM12/21/17
to nltk-users
Hello Team,

I manually downloaded what supposed to get downloaded by data_download() and they sit in a folder lets say in this directory:
"C:\\Users\\abdolho\\AppData\\Roaming\\nltk_data"

Now I will do the following
nltk_data_path = "C:\\Users\\abdolho\\AppData\\Roaming\\nltk_data"
nltk.data.path.append(nltk_data_path)

Then I do 
from nltk.tokenize import word_tokenize
from nltk.corpus import stopwords
set(stopwords.words('english'))


Now my question is:
Why I still get errors saying:
Resource stopwords not found.
  Please use the NLTK Downloader to obtain the resource:

  >>> import nltk
  >>> nltk.download('stopwords')
  
  Searched in: 
- 'C:\\Users\\abdolho\\AppData\\Roaming\\nltk_data'

Thanks
Reply all
Reply to author
Forward
0 new messages