All Projects → ttpro1995 → Treelstmsentiment

ttpro1995 / Treelstmsentiment

Licence: mit
Pytorch implementation of Sentiment Classification in Improved Semantic Representations From Tree-Structured Long Short-Term Memory Networks

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Treelstmsentiment

NTUA-slp-nlp
💻Speech and Natural Language Processing (SLP & NLP) Lab Assignments for ECE NTUA
Stars: ✭ 19 (-81.73%)
Mutual labels:  sentiment-classification
hashformers
Hashformers is a framework for hashtag segmentation with transformers.
Stars: ✭ 18 (-82.69%)
Mutual labels:  sentiment-classification
Senta
Baidu's open-source Sentiment Analysis System.
Stars: ✭ 1,187 (+1041.35%)
Mutual labels:  sentiment-classification
Fast-Dawid-Skene
Code for the algorithms in the paper: Vaibhav B Sinha, Sukrut Rao, Vineeth N Balasubramanian. Fast Dawid-Skene: A Fast Vote Aggregation Scheme for Sentiment Classification. KDD WISDOM 2018
Stars: ✭ 35 (-66.35%)
Mutual labels:  sentiment-classification
KoBERT-nsmc
Naver movie review sentiment classification with KoBERT
Stars: ✭ 57 (-45.19%)
Mutual labels:  sentiment-classification
Text Classification Pytorch
Text classification using deep learning models in Pytorch
Stars: ✭ 683 (+556.73%)
Mutual labels:  sentiment-classification
pysenti
Chinese Sentiment Classification Tool. 情感极性分类,基于知网、清华、BosonNLP情感词典,易扩展,基准方法,开箱即用。
Stars: ✭ 31 (-70.19%)
Mutual labels:  sentiment-classification
Pytorch Sentiment Classification
LSTM and CNN sentiment analysis
Stars: ✭ 89 (-14.42%)
Mutual labels:  sentiment-classification
ML2017FALL
Machine Learning (EE 5184) in NTU
Stars: ✭ 66 (-36.54%)
Mutual labels:  sentiment-classification
Absa Pytorch
Aspect Based Sentiment Analysis, PyTorch Implementations. 基于方面的情感分析,使用PyTorch实现。
Stars: ✭ 1,181 (+1035.58%)
Mutual labels:  sentiment-classification
NewsMTSC
Target-dependent sentiment classification in news articles reporting on political events. Includes a high-quality data set of over 11k sentences and a state-of-the-art classification model.
Stars: ✭ 54 (-48.08%)
Mutual labels:  sentiment-classification
billboard
🎤 Lyrics/associated NLP data for Billboard's Top 100, 1950-2015.
Stars: ✭ 53 (-49.04%)
Mutual labels:  sentiment-classification
Tensorflow Sentiment Analysis On Amazon Reviews Data
Implementing different RNN models (LSTM,GRU) & Convolution models (Conv1D, Conv2D) on a subset of Amazon Reviews data with TensorFlow on Python 3. A sentiment analysis project.
Stars: ✭ 34 (-67.31%)
Mutual labels:  sentiment-classification
SentimentAnalysis
Sentiment Analysis: Deep Bi-LSTM+attention model
Stars: ✭ 32 (-69.23%)
Mutual labels:  sentiment-classification
Nlp Tutorial
A list of NLP(Natural Language Processing) tutorials
Stars: ✭ 1,188 (+1042.31%)
Mutual labels:  sentiment-classification
nsmc-zeppelin-notebook
Movie review dataset Word2Vec & sentiment classification Zeppelin notebook
Stars: ✭ 26 (-75%)
Mutual labels:  sentiment-classification
Awesome Sentiment Analysis
Repository with all what is necessary for sentiment analysis and related areas
Stars: ✭ 459 (+341.35%)
Mutual labels:  sentiment-classification
Tia
Your Advanced Twitter stalking tool
Stars: ✭ 98 (-5.77%)
Mutual labels:  sentiment-classification
Lc Absa
Training & Inferring & Reproducing for SOTA ABSA models
Stars: ✭ 76 (-26.92%)
Mutual labels:  sentiment-classification
Twitter Sentiment Analysis
Sentiment analysis on tweets using Naive Bayes, SVM, CNN, LSTM, etc.
Stars: ✭ 978 (+840.38%)
Mutual labels:  sentiment-classification

Tree-Structured Long Short-Term Memory Networks

A PyTorch based implementation of Tree-LSTM from Kai Sheng Tai's paper Improved Semantic Representations From Tree-Structured Long Short-Term Memory Networks.

Requirements

  • PyTorch Deep learning library
  • tqdm: display progress bar
  • meowlogtool: a logger that write everything on console to file
  • Java >= 8 (for Stanford CoreNLP utilities)
  • Python >= 3

Usage

First run the script ./fetch_and_preprocess.sh

This downloads the following data:

and the following libraries:

Sentiment classification

python sentiment.py --name <name_of_log_file> --model_name <constituency|dependency> --epochs 10

We have not fully test on fine grain classification yet. Binary classification accuracy on both model are the same in original paper.

Acknowledgements

Kai Sheng Tai for the original LuaTorch implementation
Pytorch team for Python library
Riddhiman Dasgupta for his implement on sentiment relatedness https://github.com/dasguptar/treelstm.pytorch which I based on as starter code.

License

MIT

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].