GithubHelp home page GithubHelp logo

text-classification-theano's Introduction

text sentiment classification

The project homework for "Foundations of Machine Learning".

This project implements RNN, LSTM and CNN for text sentiment classification, based on Theano (0.8.2).
All models accept pre-trained word embedding inputs.

dataset

We use Large Movie Review Dataset (imdb) dataset as default dataset, and process it according to theano-tutorial.  

You can change the training data by yourself, and refer the imdb data processing script (imdb-corpus-prepare-script.py) for data processing details. Alternatively, you can use the Corpus.build_corpus_with_dic method provided by corpus-module to build corpus and dictionary simultaneously.

test error rates of models (imdb dataset)

model pooling ensemble CV (soft voting) ensemble CV (hard voting) pre-trained word embedding randomly initialized word embedding
LSTM max 10.10% 10.07% 10.45% 11.46%
LSTM mean 9.54% 9.65% 9.70% 10.83%
RNN max N/A N/A 12.32% 13.28%
RNN mean N/A N/A 11.49% 11.58%
CNN max 9.52% 9.62% 10.63% 10.55%
CNN mean 11.17% 11.25% 11.90% 11.98%

text-classification-theano's People

Contributors

syuoni avatar

Stargazers

 avatar

Watchers

 avatar

text-classification-theano's Issues

你好,就文本情感分类的问题,想咨询一下

看到你是用RNN,LSTM,CNN进行的情感分类,但有些问题想要请教一下:对什么文本进行的情感分类,对于文本是怎么处理的,还有各种方法的分类精度如何,想做情感分类方面的研究,还请指导一下

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.