All Projects → kinni → char-cnn-text-classification-tensorflow

kinni / char-cnn-text-classification-tensorflow

Licence: Apache-2.0 license
Simple Convolutional Neural Network (CNN) for sentiment classification of Chinese movie reviews.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to char-cnn-text-classification-tensorflow

GroupDocs.Classification-for-.NET
GroupDocs.Classification-for-.NET samples and showcase (text and documents classification and sentiment analysis)
Stars: ✭ 38 (-30.91%)
Mutual labels:  sentiment-analysis
twitter-sentiment-analysis
Streaming tweets with spark, language detection & sentiment analysis, dashboard with Kibana
Stars: ✭ 100 (+81.82%)
Mutual labels:  sentiment-analysis
Text tone analyzer
Система, анализирующая тональность текстов и высказываний.
Stars: ✭ 15 (-72.73%)
Mutual labels:  sentiment-analysis
arabic-sentiment-analysis
Sentiment Analysis in Arabic tweets
Stars: ✭ 64 (+16.36%)
Mutual labels:  sentiment-analysis
sentimentAnalysisLab
This lab is about how to add the AI and ML cloud service feature to your web application with React and the Amplify Framework.
Stars: ✭ 78 (+41.82%)
Mutual labels:  sentiment-analysis
soroka
Узнай, хорошо или плохо говорят о тебе или твоей фирме в Интернете! Наша "Сорока" с искусственным интеллектом принесёт тебе это на своём хвосте.
Stars: ✭ 16 (-70.91%)
Mutual labels:  sentiment-analysis
wink-nlp
Developer friendly Natural Language Processing ✨
Stars: ✭ 312 (+467.27%)
Mutual labels:  sentiment-analysis
Dataset-Sentimen-Analisis-Bahasa-Indonesia
Repositori ini merupakan kumpulan dataset terkait analisis sentimen Berbahasa Indonesia. Apabila Anda menggunakan dataset-dataset yang ada pada repositori ini untuk penelitian, maka cantumkanlah/kutiplah jurnal artikel terkait dataset tersebut. Dataset yang tersedia telah diimplementasikan dalam beberapa penelitian dan hasilnya telah dipublikasi…
Stars: ✭ 38 (-30.91%)
Mutual labels:  sentiment-analysis
Emotion and Polarity SO
An emotion classifier of text containing technical content from the SE domain
Stars: ✭ 74 (+34.55%)
Mutual labels:  sentiment-analysis
SentimentAnalysis
基于新浪微博数据的情感极性分析
Stars: ✭ 43 (-21.82%)
Mutual labels:  sentiment-analysis
tf-sentiment-docker
A docker image for sentiment analysis on tensorflow
Stars: ✭ 15 (-72.73%)
Mutual labels:  sentiment-analysis
TLA
A comprehensive tool for linguistic analysis of communities
Stars: ✭ 47 (-14.55%)
Mutual labels:  sentiment-analysis
Real Time DataMining Software
携程/榛果民宿实时评论挖掘软件,包含数据的实时采集/数据清洗/结构化保存/ UGC 数据主题提取/情感分析/后结构化可视化等技术的综合性演示 Demo。基于在线民宿 UGC 数据的意见挖掘项目,包含数据挖掘和 NLP 相关的处理,负责数据采集、主题抽取、情感分析等任务。主要克服用户打分和评论不一致,实时对携程和美团在线民宿的满意度进行评测以及对额外数据进行可视化的综合性工具,多维度的对在线 UGC 进行数据挖掘并可视化,demo 视频演示见链接。
Stars: ✭ 43 (-21.82%)
Mutual labels:  sentiment-analysis
sarcasm-detection-for-sentiment-analysis
Sarcasm Detection for Sentiment Analysis
Stars: ✭ 21 (-61.82%)
Mutual labels:  sentiment-analysis
amazon-reviews
Sentiment Analysis & Topic Modeling with Amazon Reviews
Stars: ✭ 26 (-52.73%)
Mutual labels:  sentiment-analysis
sentiment-analysis-using-python
Large Data Analysis Course Project
Stars: ✭ 23 (-58.18%)
Mutual labels:  sentiment-analysis
pandas twitter
Analyzing Trump's tweets using Python (Pandas + Twitter workshop)
Stars: ✭ 81 (+47.27%)
Mutual labels:  sentiment-analysis
COVID-19-Tweet-Classification-using-Roberta-and-Bert-Simple-Transformers
Rank 1 / 216
Stars: ✭ 24 (-56.36%)
Mutual labels:  sentiment-analysis
AirBnbPricePrediction
Training and Testing a Set of Machine Learning/Deep Learning Models to Predict Airbnb Prices for NYC
Stars: ✭ 47 (-14.55%)
Mutual labels:  sentiment-analysis
sentiment-analysis-imdb
This is a classifier focused on sentiment analysis of movie reviews
Stars: ✭ 11 (-80%)
Mutual labels:  sentiment-analysis

char-cnn-text-classification-tensorflow

Simple Convolutional Neural Network (CNN) for text classification at character level. In this project we will implement a Chinese Movie Sentiment (Positive/Negative) Classifier with CNN using TensorFlow. A manually labeled small corpus (HK movie reviews) has been uploaded for you to try out the network.

Mostly reused code from https://github.com/dennybritz/cnn-text-classification-tf which was posted by Denny Britz. Check out his great blog post on CNN classification http://www.wildml.com/2015/12/implementing-a-cnn-for-text-classification-in-tensorflow/.

Things are modified from the original author:

  • modified the data helpers to support Chinese to train the embeddings at character level
  • added Tensorboard visualization for embeddings
  • added sample.py which will generate prediction output
  • added serve.py which will serve the classifier via Flask

Requirements

  • Tensorflow 1.0 or up

Basic Usage

To train with the Chinese movie reviews dataset, run: python train.py

To visualize results and embeddings, run: tensorboard --logdir ./runs/1492654198/summaries/

To predict from a trained model, run with checkpoint_dir argument python sample.py --checkpoint_dir=./runs/1492654198/checkpoints/ --text="套戲好鬼悶"

To serve the model via a Flask API, run: python serve.py --checkpoint_dir=./runs/1492656039/checkpoints/ then send a HTTP POST request to http://localhost:5000/predict with the following json body: {"text": "套戲好鬼悶"}

TODO

Some updates will be published soon.

  • Train the embeddings at word level using jieba's tokenizer or other pre-trained word embeddings
  • Use high level APIS such as tf.layers or tf.keras(will be available in TensorFLow 1.2)
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].