Giter Site home page Giter Site logo

aminul-huq / cnn-rnn-for-multiclass-classification-on-sst-dataset Goto Github PK

View Code? Open in Web Editor NEW
6.0 2.0 0.0 170 KB

PyTorch implementation of multi-class sentiment classification on SST dataset using CNN and RNN.

Python 13.57% Shell 1.52% Jupyter Notebook 84.91%
cnn-text-classification rnn-text-classification multiclass-classification pytorch-implementation sst-dataset glove-embeddings nlp convolutional-neural-networks python sentiment-analysis

cnn-rnn-for-multiclass-classification-on-sst-dataset's Introduction

CNN-RNN-for-Multiclass-Classification-on-SST-dataset

This is a pytorch implementation of multiclass sentiment analysis on SST dataset. In here, both CNN and RNN model implementation is shown here.

File Description

File Name Description
model.py Classification Models
utils.py Loading dataset, model fit, model test and visualize
train.py Training and testing models
sample_execution.ipynb sample execution
run.sh Bash file for running this program in 6 configuration

Usage

This repository can be donwloaded as

git clone https://github.com/aminul-huq/CNN-RNN-for-Multiclass-Classification-on-SST-dataset.git
bash run.sh

Tested under python 3.6 and pytorch 1.0

Arguments

Command Default_value
--model 0
--lr 0.001
--itr 5
--dropout 0.5
--hidden_dim 256
--device "cpu"
--n_filters 100
--filter_size 3

cnn-rnn-for-multiclass-classification-on-sst-dataset's People

Contributors

aminul-huq avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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.