Skip to content

da-cali/sentimentClassifier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sentimentClassifier

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.

See the code here.

Run it by either copying the source code and building it with matrix and random as dependencies; or by cloning this repository:

  1. Install stack if necessary.

  2. Clone repository:

    git clone https://github.com/da-cali/sentimentClassifier
    
  3. Open folder:

    cd sentimentClassifier
    
  4. Build project:

    stack build
    
  5. Train and run:

    stack runhaskell src/Main.hs
    
Note: Increase the sample size to train with more examples and get more accurate responses.

Authors:

Louise Brett, Dan Castillo, Michael Ton.

About

Naive Bayes classifier trained with Twitter data that evaluates niceness.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published