All Projects → hiyouga → PBAN-PyTorch

hiyouga / PBAN-PyTorch

Licence: MIT license
A Position-aware Bidirectional Attention Network for Aspect-level Sentiment Analysis, PyTorch implementation.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to PBAN-PyTorch

MemNet ABSA
No description or website provided.
Stars: ✭ 20 (-39.39%)
Mutual labels:  sentiment-analysis, aspect-based-sentiment-analysis
SA-DL
Sentiment Analysis with Deep Learning models. Implemented with Tensorflow and Keras.
Stars: ✭ 35 (+6.06%)
Mutual labels:  sentiment-analysis, aspect-based-sentiment-analysis
Scon-ABSA
[CIKM 2021] Enhancing Aspect-Based Sentiment Analysis with Supervised Contrastive Learning
Stars: ✭ 17 (-48.48%)
Mutual labels:  sentiment-analysis, aspect-based-sentiment-analysis
Chinese financial sentiment dictionary
A Chinese financial sentiment word dictionary
Stars: ✭ 67 (+103.03%)
Mutual labels:  sentiment-analysis
fawkes
🚀🚀 Fetch, parse, categorize, summarize user reviews 🚀🚀
Stars: ✭ 83 (+151.52%)
Mutual labels:  sentiment-analysis
sentiment-analysis-of-tweets-in-russian
Sentiment analysis of tweets in Russian using Convolutional Neural Networks (CNN) with Word2Vec embeddings.
Stars: ✭ 51 (+54.55%)
Mutual labels:  sentiment-analysis
SentimentAnalysis
Sentiment Analysis: Deep Bi-LSTM+attention model
Stars: ✭ 32 (-3.03%)
Mutual labels:  sentiment-analysis
twitter-aws-comprehend
An app to analyze tweets using Amazon Comprehend's Sentiment Analysis service
Stars: ✭ 13 (-60.61%)
Mutual labels:  sentiment-analysis
NTUA-slp-nlp
💻Speech and Natural Language Processing (SLP & NLP) Lab Assignments for ECE NTUA
Stars: ✭ 19 (-42.42%)
Mutual labels:  sentiment-analysis
ntua-slp-semeval2018
Deep-learning models of NTUA-SLP team submitted in SemEval 2018 tasks 1, 2 and 3.
Stars: ✭ 79 (+139.39%)
Mutual labels:  sentiment-analysis
reddit-opinion-mining
Sentiment analysis and opinion mining of Reddit data.
Stars: ✭ 15 (-54.55%)
Mutual labels:  sentiment-analysis
CLUEmotionAnalysis2020
CLUE Emotion Analysis Dataset 细粒度情感分析数据集
Stars: ✭ 3 (-90.91%)
Mutual labels:  sentiment-analysis
InterGCN-ABSA
[COLING 2020] Jointly Learning Aspect-Focused and Inter-Aspect Relations with Graph Convolutional Networks for Aspect Sentiment Analysis
Stars: ✭ 41 (+24.24%)
Mutual labels:  sentiment-analysis
ACSA
Papers, models and datasets for Aspect-Category Sentiment Analysis.
Stars: ✭ 50 (+51.52%)
Mutual labels:  aspect-based-sentiment-analysis
fsauor2018
基于LSTM网络与自注意力机制对中文评论进行细粒度情感分析
Stars: ✭ 36 (+9.09%)
Mutual labels:  sentiment-analysis
soan
Social Analysis based on Whatsapp data
Stars: ✭ 106 (+221.21%)
Mutual labels:  sentiment-analysis
Steward
A stock portfolio manager that provides neural net based short-term predictions for stocks and natural language processing based analysis on community sentiments.
Stars: ✭ 25 (-24.24%)
Mutual labels:  sentiment-analysis
twitter-sentiment-analysis
Sentiment Analysis on twitter using Keras / TensorFlow / GloVe
Stars: ✭ 29 (-12.12%)
Mutual labels:  sentiment-analysis
sentence-classification-pytorch
Sentiment analysis with variable length sequences in pytorch
Stars: ✭ 34 (+3.03%)
Mutual labels:  sentiment-analysis
nlpserver
NLP Web Service
Stars: ✭ 76 (+130.3%)
Mutual labels:  sentiment-analysis

PBAN-PyTorch

PyTorch implementation of Gu et al.'s COLING 2018 work.

LICENSE

Requirement

Dataset

Based on the restaurant and laptop dataset of SemEval-2014 Task 4.

Restaurant Dataset

Polarity #Positive #Negative #Neutral
Train 2164 807 637
Test 728 196 196

Laptop Dataset

Polarity #Positive #Negative #Neutral
Train 994 870 464
Test 341 128 169

Usage

Train the model:

python train.py --model_name pban --dataset restaurant

Show help message and exit:

python train.py -h

Implemented models

LSTM

Tang, Duyu, et al. "Effective LSTMs for Target-Dependent Sentiment Classification." Proceedings of COLING 2016, the 26th International Conference on Computational Linguistics: Technical Papers. 2016. [pdf]

lstm

ATAE-LSTM

Wang, Yequan, Minlie Huang, and Li Zhao. "Attention-based LSTM for aspect-level sentiment classification." Proceedings of the 2016 conference on empirical methods in natural language processing. 2016. [pdf]

atae_lstm

PBAN

Gu, Shuqin, et al. "A Position-aware Bidirectional Attention Network for Aspect-level Sentiment Analysis." Proceedings of the 27th International Conference on Computational Linguistics. 2018. [pdf]

pban

Performance

Restaurant Dataset

Three-class

Model In Paper This Code
LSTM 74.28 77.68
ATAE-LSTM 77.20 78.30
PBAN 81.16 80.89

Two-class

Model In Paper This Code
LSTM - -
ATAE-LSTM 90.90 90.26
PBAN 91.67 92.32

Laptop Dataset

Three-class

Model In Paper This Code
LSTM 66.45 71.00
ATAE-LSTM 68.70 71.32
PBAN 74.12 74.76

Two-class

Model In Paper This Code
LSTM - -
ATAE-LSTM 87.60 87.63
PBAN 87.81 87.42

Acknowledgements

  • Some of the code is borrowed from songyouwei.
  • Using this code means you have read and accepted the copyrights set by the dataset providers.

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