简体   繁体   中英

Using Sentiwordnet with TextBlob

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.)

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM