Removed stopwords

Prediction is not good if review consist of words like “NOT” because of removed stop words. I have listed words like “not” as adverb before adjective like “bad” using nltk.pos_tag. So my question is follows,
How to get opposite word for “bad” if it consist of adverbs like “not”. Which library i can use get opposite words?

Instead of taking unigrams take bigrams that is take to words in conjunction as single.
That is instead of taking not and good separately take them as single ‘not good’ u will have to do the same for entire corpus

Hey Rinshan, as you are not responding to this thread, I am marking your doubt as Resolved for now. Re-open it if required.

Please mark your doubts as resolved in your course’s “ Ask Doubt ” section, when your doubt is resolved.

1 Like