A vanilla Naive Bayes classifier trained with tweets that tells you whether or not you are saying something nice.
Like this:
Tell me something...
love
That is nice.
Tell me something...
hate
That is not nice.
Tell me something...
homework
That is nice.
Tell me something...
homework on friday
That is not nice.
Run it by either copying the source code and building it with matrix and random as dependencies; or by cloning this repository:
-
Install stack if necessary.
-
Clone repository:
git clone https://github.com/da-cali/sentimentClassifier
-
Open folder:
cd sentimentClassifier
-
Build project:
stack build
-
Train and run:
stack runhaskell src/Main.hs