I previously posted about a string I extract from a link, for which I want to apply tokenize, with no luck. So tried a simplified example:
my command line is very simple:
a="Any Random text at all , nothing freaking works"
sentences = nltk.sent_tokenize(a)
TypeError: Can't convert 'list' object to str implicitly
It's the problem in nltk package itself. As in the picture, it is not the parameter passed in but literal
nltk/data.py which is considered to be list and converting to string.
Re-install nltk package may help?
show the 69th line of
nltk/data.py it should be
path =