Skip to content

bbzzzz/IMDB-Sentiment-Analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Sentiment Analysis with Naive Bayes

  • Naive Bayes
  • Add-1 smoothing
  • 10-fold cross validation
  • regular expression detecting negation words

Besides the regular Naive Bayes method, the code also realized:

  • Boolean Naive Bayes
  • Naive Bayes with stop word
  • Naive Bayes with negation features (not, never, n't)

Accuracy:

  • Regualr NB: 81.65%
  • Boolean NB: 73.85%
  • NB with stop word filterd: 81.10%
  • NB with negation features: 81.80%

Support Vector Machine:

  • sklearn LinearSVC
  • 10-fold cross validation
  • accuracy 88.45%

About

IMDB movie sentiment analysis by machine learning

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages