sloria / TextBlob

Simple, Pythonic, text processing--Sentiment analysis, part-of-speech tagging, noun phrase extraction, translation, and more.
https://textblob.readthedocs.io/
MIT License
9.05k stars 1.13k forks source link

Trying to neutralize some words! #368

Open kpineda4 opened 3 years ago

kpineda4 commented 3 years ago

Hello there!

I was wondering, some words such as "Criminal Justice Education" give off a negative sentiment score despite being used as a noun like, "My major is Criminal Justice Education.". How can we make sure that the algorithm doesn't treat such nouns negative? Thanks

GpandaM commented 3 months ago

You can train a classifier having such specific cases and use that while calling TextBlob class. https://textblob.readthedocs.io/en/dev/classifiers.html