curiosity-ai / catalyst

🚀 Catalyst is a C# Natural Language Processing library built for speed. Inspired by spaCy's design, it brings pre-trained models, out-of-the box support for training word and document embeddings, and flexible entity recognition models.
MIT License
715 stars 73 forks source link

Is Sentiment Analysis supported? #30

Closed KSemenenko closed 4 years ago

KSemenenko commented 4 years ago

Is Sentiment Analysis supported? Maybe there are some examples?

theolivenbaum commented 4 years ago

Hi @KSemenenko,

We've no specific examples on sentiment analysis, but you could use the FastText classifier model for it (see the text classification sample code).

There are a few examples online on how to use FastText for sentiment analysis, such as https://towardsdatascience.com/twitter-sentiment-analysis-using-fasttext-9ccd04465597.

The main idea is to feed your training data in with three possible labels (such as 'POSITIVE', 'NEGATIVE' or 'NEUTRAL'), and let the model learn from it.