Giter VIP home page Giter VIP logo

sentiment-classification's Introduction

sentiment-classification

Results

Algorithm Accuracy
CNN 84.59%
CNN-SBN-ST 86.44%
CNN-DBN-ST 87.54%

Prerequisite

- Anaconda (python 3.x)

Instructions to run

- First setup conda environment: run "conda env create -f sentclass.yml"
- Activate the environment with "conda activate sentclass"
- Run the main.py with python main.py --arguments

Arguments specification

- epochs [Amount of epochs to train the model]
- embed_dim [Size of the the embeddings used in the model]
- batch_size [Size of the batch to use during training]
- n_filters [Number of filters/output channels]
- filter_sizes [A comma separated string of filter sizes, such as "2,3,4,5"]
- output_dim [The number of outputs, which is 1 in the case of the sentiment classification task]
- dropout_rate [The probability to which dropout should be applied]
- binary_neuron [Type of binary neuron to use, has to be D-ST or S-ST]

Example

To run the program for 10 epochs with an embeddings dimension of 100 the batch size set to 64 and the D-ST trained Binary Neuron 
run "python main.py --epochs 10 --embed_dim 100 --batch_size 64 --binary_neuron D-ST

sentiment-classification's People

Contributors

maxbos avatar

Watchers

 avatar  avatar  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.