GithubHelp home page GithubHelp logo

giacoballoccu / dla-sentimentanalysis Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 162.4 MB

Sentiment analysis using different types of Bidirectional Recurrent Neural Networks on Amazon reviews dataset. The results are confronted with two baseline models which are an SVM and a RF model.

Jupyter Notebook 93.92% Python 6.08%
svm dla-sentimentanalysis dataset amazonreviews random-forest bidirectional-lstm bidirectional-gru

dla-sentimentanalysis's Introduction

DLA-SentimentAnalysis

How to run using precomputed models

  1. Open a terminal in the desiderate path and download the project folder using the command.
git clone https://github.com/giacoballoccu/DLA-SentimentAnalysis.git
  1. With the same terminal enter the project folder and install the requirements using this commands.
cd DLA-SentimentAnalysis/
pip3 install -r requirements.txt
  1. Wait the installing of all requirements
  2. You are ready to evaluate the models, you can run the evalutation using the command:
python3 LoadAndEvaluate.py

How to run training the model by yourself

  1. Open a terminal in the desiderate path and download the project folder using the command.
git clone https://github.com/giacoballoccu/DLA-SentimentAnalysis.git
  1. With the same terminal enter the project folder and install the requirements using this commands.
cd DLA-SentimentAnalysis
pip3 install -r requirements.txt
  1. Download and extract the dataset in the project folder DLA-SentimentAnalysis/dataset from here
  2. You should now have a directory called archive in the dataset folder, pick the file "train.ft.txt.bz2" and move it one level down in the "DLA-SentimentAnalysisDataset" folder.
  3. You are ready to train, for starting the training and evaluation paste the following command in the terminal you opened in the step 0 (It must be located in the "DLA-SentimentAnalysis" folder).
python3 Train.py

dla-sentimentanalysis's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.