/sentiment_analysis

A sentiment analysis models for Arabic and English.

Primary LanguageJupyter Notebook

Sentiment Analysis

  1. Project Overview
  2. Installation
  3. Data
  4. Implementation
  5. Results

1. Project Overview

This project to build a sentiment analysis for English Movies dataset and Arabic Posts.

2. Installation

  • Python versions 3.*.
  • Python Libraries:
    • sklearn.
    • Pandas.
    • string.
    • nltk
    • re.

3. Data

English

IMDB dataset having 50K movie reviews. This is a dataset for binary sentiment classification.

Arabic

BBN Blog Posts Sentiment Corpus contains A random subset of 1200 sentences chosen from the BBN Arabic-Dialect–English Parallel Text.

4. Implementation

In this project, we used Gaussian Naive Bayes from scikit-learn. The data have been split into training and testing with a ratio of 80:20.

English

Arabic

5. Result

Here some prediction to model.

English

Arabic