BladeDancer957 / TSAM

The code for COLING2022 paper: 《TSAM: A Two-Stream Attention Model for Causal Emotion Entailment》

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TSAM

The code for paper: 《TSAM: A Two-Stream Attention Model for Causal Emotion Entailment》

Requirements

With Anaconda, we can create the environment with the provided environment.yml:

conda env create --file environment.yml 
conda activate CEE

The code has been tested on Ubuntu 16.04 using a single GPU. For multi-GPU training, a little extra work may be needed, and please refer to these examples: Hugging Face and CLUEbenchmark.


Run Steps

  1. data/ including original annotation dataset and our preprocessed dataset.
  2. code/ including our codes.
  3. Download necessary pre-trained model files (RoBERTa base and large).
  4. Configure hyper-parameters in code/config.py
  5. Run our model:
python code/main.py

About

The code for COLING2022 paper: 《TSAM: A Two-Stream Attention Model for Causal Emotion Entailment》


Languages

Language:Python 100.0%