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