Giter Club home page Giter Club logo

cnn-sentence-classification's Introduction

CNN-Sentence-Classification

A tensorflow implementation of Convolutional Neural Networks for Sentence Classification. The original paper can be found at https://arxiv.org/abs/1408.5882

The implementation differs from the original paper in the following ways :

  • Pretrained word vectors are not used
  • Two seperate channels of word vectors are not used, all vectors are learned
  • L2 norm constraints are not enforced

Edit the config file to change the configuration of the model

Results

The model produces a test accuracy of 75.33 % within 2 epochs. The results produced in the paper for the given architecture is 76.1 %

Comparison with other models

Comparison with other models (taken from the paper). The model could perform much better with pretrained word vectors

Architecture Test accuracy
CNN-rand 76.1
CNN-static 81.0
CNN-non-static 81.5
CNN-multichannel 81.1
RAE (Socher et al., 2011) 77.7
MV-RNN (Socher et al., 2012) 79.0
CCAE (Hermann and Blunsom, 2013) 77.8
Sent-Parser (Dong et al., 2014) 79.5
NBSVM (Wang and Manning, 2012) 79.4
MNB (Wang and Manning, 2012) 79.0
G-Dropout (Wang and Manning, 2013) 79.0
F-Dropout (Wang and Manning, 2013) 79.1
Tree-CRF (Nakagawa et al., 2010) 77.3

cnn-sentence-classification's People

Contributors

abhaikollara avatar

Watchers

James Cloos avatar Mohiuddin Khan Inamdar avatar  avatar paper2code - bot 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.