Skip to content

Tensorflow highlevel api implementation of "Convolutional Neural Networks for Sentence Classification"

Notifications You must be signed in to change notification settings

jeonghunyoon/Text-classification-tensorflow

Repository files navigation

Text-classification-tensorflow

This project is Sentiment Analysis for Naver(Korean portal site) movie review.

It uses Tensorflow highlevel api and CNN, RNN models for classification.

For simple keras implementation, please refer to https://github.com/jeonghunyoon/spam-classification-cnn-tf.

Data

https://github.com/e9t/nsmc

References

This project is based on following papers.

Run project

python executor.py is_first_time parse_type embedding_type

# command example : python executor.py false morphs word2vec
  • is_first_time : true or false. When true it will create all parsed files(morphs, nouns) and store it. When false it just load the parsed data according to parse_type.

  • parse_type : morphs or nouns

  • embedding_type : doc2vec or word2vec. LDA, NMF will be added.

Performance

  • parse_type : morphs, embedding_type : word2vec
    • accuracy = 0.8116487, area_under_auc = 0.8694117

Author

Jeonghun Yoon

About

Tensorflow highlevel api implementation of "Convolutional Neural Networks for Sentence Classification"

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages