KEC
The code for the paper "Neutral Utterances are Also Causes: Enhancing Conversational Causal Emotion Entailment with Social Commonsense Knowledge"
Install / Use
/learn @LeqsNaN/KECREADME
The code for the paper "Neutral Utterances are Also Causes: Enhancing Conversational Causal Emotion Entailment with Social Commonsense Knowledge".
The appendix mentioned in the paper is present in here.
Some code is based on DAG-ERC, RECCON, and COMET-ATOMIC-2020.
Requirements
- Pytorch==1.8.1
- Transformers==4.3.3
- numpy=1.19.2
- nltk
Additonal Data
Edge attributes of skaig: skaig_data
Training
bash run_single.sh
Some explanations
-
generate_knowledge.pyis used to generate social commonsense knowledge for our method. Put it incomet-atomic-2020/models/comet_atomic2020_bart/of COMET-ATOMIC-2020. P.S. the paths of loaded and dumped files should be modified to your own data paths. We have uploaded all the generated knowledge data indd_data. -
knowledge_select.pyis used to select sentimental related pieces of knowledge for a pair of utterances. We have uploaded all the processed data indd_data. -
entail_construct.pyis used to form the data into the entailment style with or without emotion words. The generatad files is used to train and evaluate the baseline of RECCON-DD. Furthermore, replace thetrain_classification.py,eval_classification.pyin RECCON withRECCON_baseline/train_classification.pyandRECCON_baseline/eval_classification.pyin this repository. We have uploaded the entailment style data in here. Download the data and put them indata/subtask2/fold1/in RECCON.
Related Skills
node-connect
347.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
107.8kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
347.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
347.0kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
