Oct-22-2020, 05:41 PM
Hi,
I have all NLTK packages loaded locally, however when I run the following commands in my source code i am getting errors:
import nltk
from nltk.tokenize import sent_tokenize, word_tokenize
data = "This is a test"
print(word_tokenize(data))
The error I am getting is:
Resource <-[93mpunkt<-[0m not found
Attempted to load <-[93mtokenizers/punkt/english.pickle<-[0m
Searched in:
<There is a series of windows folders it lists here>
It looks like I have what it is looking for, but not maybe in the proper windows folder ??..Should I move some folders around so it can see it in the path ?
Thanks
I have all NLTK packages loaded locally, however when I run the following commands in my source code i am getting errors:
import nltk
from nltk.tokenize import sent_tokenize, word_tokenize
data = "This is a test"
print(word_tokenize(data))
The error I am getting is:
Resource <-[93mpunkt<-[0m not found
Attempted to load <-[93mtokenizers/punkt/english.pickle<-[0m
Searched in:
<There is a series of windows folders it lists here>
It looks like I have what it is looking for, but not maybe in the proper windows folder ??..Should I move some folders around so it can see it in the path ?
Thanks