DarkStar1997 / Movie-Review-Sentiment-Analysis

Analysing the sentiment of a movie review from scratch using an ANN

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Movie Review Sentiment Analysis from Scratch

In this repository, we have implemented a movie review sentiment analysis tool which rates the review and returns a fractional value between 0 and 1, where, 0 indicates negative and 1 being positive. For preprocessing, we have used the TFIDF algorithm from the Scikit-learn package. The main training has been done on an Artificial Neural Network (ANN) written in C++ and Arrayfire which is capable of accelerating Linear Algebra operations on CPU as well as GPU using Intel MKL, OpenCL and CUDA.

A simple re-implementable version of the Neural Network written in C++/ArrayFire can be found here.

Note:

The integration of the Python code for TFIDF and the C++ code for the ANN has been done very naively using a system call: system("python3 get_file_tfidf.py > test1.txt"); in test.cpp avoiding the usage of any wrapper code.

About

Analysing the sentiment of a movie review from scratch using an ANN


Languages

Language:C++ 78.6%Language:Python 18.7%Language:CMake 2.7%