Giter VIP home page Giter VIP logo

kec's Introduction

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.py is used to generate social commonsense knowledge for our method. Put it in comet-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 in dd_data.

  • knowledge_select.py is used to select sentimental related pieces of knowledge for a pair of utterances. We have uploaded all the processed data in dd_data.

  • entail_construct.py is 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 the train_classification.py, eval_classification.py in RECCON with RECCON_baseline/train_classification.py and RECCON_baseline/eval_classification.py in this repository. We have uploaded the entailment style data in here. Download the data and put them in data/subtask2/fold1/ in RECCON.

kec's People

Contributors

leqsnan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

yangweiboyang

kec's Issues

关于对比方法KAG和Adapted的一些问题

您好,想向您请教一下关于您所用对比方法的几个问题

1.请问kag_data文件夹下的数据是如何生成的,如果您能提供生成该数据相应的代码,我将不胜感激。

2.您论文中提到的另一种对比方法Adapted具体是如何实现的?原论文中的数据集对于情感原因似乎是按照span处理的,因此被抽象成了序列标注的任务,但在KEC的对话任务里情感原因的最小粒度为utterance,并且原论文中提到了多任务的方法,我想知道您这部分具体是使用了哪种方法,如果您可以提供给我相应的代码,我将十分感谢。

我的邮箱是[email protected],谢谢!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.