Using Sentiwordnet with TextBlob

719 Views Asked by At

Is there a way I can conduct sentiment analysis with TextBlob, as NLP, using Sentiwordnet, as it's corpora database?

Currently, I believe TextBlob is using other corpora databases to do sentiment analysis from the download_corpora.py, but I do not know which ones are actually being used for the analysis.

(I know I can use NLTK, but I find TextBlob more powerful, as it calls NLTK.)

1

There are 1 best solutions below

0
On

I believe what OP is asking is, is there a SentiWordNet model NLTK that can be used in TextBlob.

Out of the box, the answer is no.

From TextBlob's wiki: The textblob.sentiments module contains two sentiment analysis implementations, PatternAnalyzer (based on the pattern library) and NaiveBayesAnalyzer (an NLTK classifier trained on a movie reviews corpus). https://textblob.readthedocs.io/en/latest/advanced_usage.html#sentiment-analyzers