Skip to content

toan01-uet/sentiment

Repository files navigation

Sentiment Analysis

Demo

demo

Description

In this project, we aim to develop a system to automatically classifier incoming message, comment,.. and tells whether the underlying sentiment is positive or negative.

We used stacking ensemble (navie bayes, logistic regression, decision tree, randomn forest) for sentiment classification using AIViVN's comments dataset.

The model scored 0.87 (f1 score) in test set.

Model

We used mlxtend to stacking models.

The first-level classifiers are:

  1. Logistic Regression
  2. Decision Tree
  3. Random Forest
  4. GaussianNB
  5. BernoulliNB

The meta classifier is Logistic Regression. The class-probabilities of the first-level classifiers are used to train the meta-classifier.

Here’s what an ensemble stacking model does: sys reference