All Projects → zerohd4869 → DialogueCRN

zerohd4869 / DialogueCRN

Licence: MIT license
Source code for ACL-IJCNLP 2021 paper "DialogueCRN: Contextual Reasoning Networks for Emotion Recognition in Conversations"

Programming Languages

python
139335 projects - #7 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to DialogueCRN

CLUEmotionAnalysis2020
CLUE Emotion Analysis Dataset 细粒度情感分析数据集
Stars: ✭ 3 (-89.66%)
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 (+41.38%)
Mutual labels:  sentiment-analysis
SentimentAnalysis
Sentiment Analysis: Deep Bi-LSTM+attention model
Stars: ✭ 32 (+10.34%)
Mutual labels:  sentiment-analysis
sentence-classification-pytorch
Sentiment analysis with variable length sequences in pytorch
Stars: ✭ 34 (+17.24%)
Mutual labels:  sentiment-analysis
nlpserver
NLP Web Service
Stars: ✭ 76 (+162.07%)
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 (-13.79%)
Mutual labels:  sentiment-analysis
Chinese financial sentiment dictionary
A Chinese financial sentiment word dictionary
Stars: ✭ 67 (+131.03%)
Mutual labels:  sentiment-analysis
LinLP
使用Python进行自然语言处理相关实践,如新词发现,主题模型,隐马尔模型词性标注,Word2Vec,情感分析
Stars: ✭ 43 (+48.28%)
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 (+75.86%)
Mutual labels:  sentiment-analysis
stocktwits-sentiment
Stocktwits market sentiment analysis in Python with Keras and TensorFlow.
Stars: ✭ 23 (-20.69%)
Mutual labels:  sentiment-analysis
twitter-sentiment-analysis
Sentiment Analysis on twitter using Keras / TensorFlow / GloVe
Stars: ✭ 29 (+0%)
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 (+172.41%)
Mutual labels:  sentiment-analysis
NTUA-slp-nlp
💻Speech and Natural Language Processing (SLP & NLP) Lab Assignments for ECE NTUA
Stars: ✭ 19 (-34.48%)
Mutual labels:  sentiment-analysis
Aspect-Based-Sentiment-Analysis
A python program that implements Aspect Based Sentiment Analysis classification system for SemEval 2016 Dataset.
Stars: ✭ 57 (+96.55%)
Mutual labels:  sentiment-analysis
restaurant-finder-featureReviews
Build a Flask web application to help users retrieve key restaurant information and feature-based reviews (generated by applying market-basket model – Apriori algorithm and NLP on user reviews).
Stars: ✭ 21 (-27.59%)
Mutual labels:  sentiment-analysis
fawkes
🚀🚀 Fetch, parse, categorize, summarize user reviews 🚀🚀
Stars: ✭ 83 (+186.21%)
Mutual labels:  sentiment-analysis
XED
XED multilingual emotion datasets
Stars: ✭ 34 (+17.24%)
Mutual labels:  sentiment-analysis
CharLSTM
Bidirectional Character LSTM for Sentiment Analysis - Tensorflow Implementation
Stars: ✭ 49 (+68.97%)
Mutual labels:  sentiment-analysis
PBAN-PyTorch
A Position-aware Bidirectional Attention Network for Aspect-level Sentiment Analysis, PyTorch implementation.
Stars: ✭ 33 (+13.79%)
Mutual labels:  sentiment-analysis
fsauor2018
基于LSTM网络与自注意力机制对中文评论进行细粒度情感分析
Stars: ✭ 36 (+24.14%)
Mutual labels:  sentiment-analysis

DialogueCRN

Source code for ACL-IJCNLP 2021 paper "DialogueCRN: Contextual Reasoning Networks for Emotion Recognition in Conversations".

Quick Start

Requirements

python==3.6.10
torch==1.4.0
torch-geometric==2.0.1
torch-scatter==2.0.4
sklearn==0.0
numpy==1.19.5
pandas==0.24.2

Install related dependencies:

pip install -r requirements.txt

Dataset

The original datasets can be found at IEMOCAP, SEMAINE and MELD.

In this work, we focus on emotion recognition in textual conversations. Following previous works (bc-LSTM, DialogueRNN, DialogueGCN, et al.), raw features of textual modality are extracted by using TextCNN.

Training/Testing

For training model on IEMOCAP dataset , you can refer to the following:

EXP_NO="dialoguecrn_v1"
DATASET="iemocap"
WORK_DIR="${WORK_PATH}/DialogueCRN" # your work path
DATA_DIR="${WORK_DIR}/data/${DATASET}/IEMOCAP_features.pkl"
OUT_DIR="${WORK_DIR}/outputs/${DATASET}/${EXP_NO}"

python -u ${WORK_DIR}/code/run_train_ie.py   \
    --feature_type text --data_dir ${DATA_DIR} --output_dir ${OUT_DIR}  \
    --gamma 0 --step_s 3  --step_p 4  --lr 0.0001 --l2 0.0002  --dropout 0.2 --base_layer 2

For training model on MELD dataset , you can refer to the following:

EXP_NO="dialoguecrn_v1"
DATASET="meld"
WORK_DIR="${WORK_PATH}/DialogueCRN" # # your work path
DATA_DIR="${WORK_DIR}/data/${DATASET}/MELD_features_raw.pkl"
OUT_DIR="${WORK_DIR}/outputs/${DATASET}/${EXP_NO}"

python -u ${WORK_DIR}/code/run_train_me.py   \
    --feature_type text --data_dir ${DATA_DIR} --output_dir ${OUT_DIR}  \
    --gamma 1.0 --step_s 3  --step_p 0  --lr 0.001 --l2 0.0002  --dropout 0.2 --base_layer 1

Run examples

bash ./script/run_train_ie.sh
bash ./script/run_train_md.sh

Result

Reproduced experiment results on th IEMOCAP and MELD datasets:

Model IEMOCAP MELD
Acc w-F1 ma-F1 Acc w-F1 ma-F1
TextCNN 49.35 49.21 48.13 59.69 56.83 33.80
bc-LSTM+Att 56.32 56.19 54.84 57.50 55.90 34.84
DialogueRNN 63.03 62.50 60.66 59.54 56.39 32.93
DialogueGCN 64.02 63.65 63.42 59.46 56.77 34.05
DialogueCRN 66.73 66.66 67.25 61.26 58.48 35.69

Citation

@inproceedings{DBLP:conf/acl/HuWH20,
  author    = {Dou Hu and
               Lingwei Wei and
               Xiaoyong Huai},
  title     = {DialogueCRN: Contextual Reasoning Networks for Emotion Recognition
               in Conversations},
  booktitle = {{ACL/IJCNLP} {(1)}},
  pages     = {7042--7052},
  publisher = {Association for Computational Linguistics},
  year      = {2021}
}
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].