KBCIN
Code for AAAI 2023 accepted paper titled "Knowledge-Bridged Causal Interaction Network for Causal Emotion Entailment"
Install / Use
/learn @circle-hit/KBCINREADME
KBCIN
- Code for AAAI 2023 accepted paper titled "Knowledge-Bridged Causal Interaction Network for Causal Emotion Entailment"
- Weixiang Zhao, Yanyan Zhao, Zhuojun Li, Bing Qin.
Requirements
- Python 3.7
- PyTorch 1.8.2
- Transformers 4.12.3
- CUDA 11.1
Preparation
Processing Features
To obtain dataset features:
python get_data.py
To obtain commonsense features:
cd comet-atomic-2020/models/comet_atomic2020_bart
Download the pretrained model in download_model.sh
Then run ./generate_knowledge.py to get csk features
Preprocessed Features
You can download the extracted utterance features and commonsense knowledge we used from: https://pan.baidu.com/s/1n0RbyztvupFLFWe80vr7kg 提取码:qeqt
and place them into ./data
Training
You can train the models with the following codes:
python train.py --hidden_dim 300 --add_emotion --use_pos --use_emo_csk --use_act_csk --use_event_csk --lr 4e-5
Related Skills
node-connect
347.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
108.0kCreate 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.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
347.2kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
