Jun-02-2019, 01:33 AM
No, !r is causing the apostrophes. What it's showing is how the computer sees the words, and that the words are exactly what was expected. The !r would show whitespace or non-printing characters we would not see in the standard string print form, but it's not showing any such thing. So the problem is not with the words you are counting.
You need to check stoplist to make sure it's what you think it is. You need to make sure the words you think shouldn't be in the output actually are in stoplist. Looking at the nltk book, they should be, so it's not clear to me what is going on. Print stoplist so we can be sure they're in there.
You need to check stoplist to make sure it's what you think it is. You need to make sure the words you think shouldn't be in the output actually are in stoplist. Looking at the nltk book, they should be, so it's not clear to me what is going on. Print stoplist so we can be sure they're in there.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures