How to get the pov/neg percentage from nltk classifier?

52 Views Asked by At

I have a normal classifier which I made from the nltk twittes, more on that in this article: https://www.digitalocean.com/community/tutorials/how-to-perform-sentiment-analysis-in-python-3-using-the-natural-language-toolkit-nltk

I want to get the positive/negative percentage of a sentence. How do I do that?

1

There are 1 best solutions below

0
Anil Guven On

You can use TextBlob library for sentiment polarity. If you'd like, you'll investigate these sites:

  1. Planspace.org
  2. Stackabuse.com
  3. Towarddatascience.com