Coder Social home page Coder Social logo

shark's Introduction

Generative Emotion Cause Triplet Extraction in Conversations with Commonsense Knowledge

Here are codes for our paper:

Fanfan Wang, Jianfei Yu and Rui Xia. Generative Emotion Cause Triplet Extraction in Conversations with Commonsense Knowledge. Findings of the Association for Computational Linguistics: EMNLP 2023. 2023: 3952-3963.

Environment

  • Python 3.8.15
  • Cuda 11.3 and Nvidia RTX-3090 GPU
  • Run pip install -r requirements.txt to install the required packages.

Usage

Training:

python train.py  --save_model 1  --save_path ./output/SHARK/

Testing:

python test.py  --seed 2023  --save_path ./output/SHARK/  --model_file ./output/SHARK/save_models/2023/xxxxxx

Acknowledgements

  • Some codes are based on BARTABSA. Thanks a lot!

shark's People

Contributors

ffcarina avatar

Stargazers

 avatar Jiangnan Li avatar Qiao Liang avatar  avatar dong yang avatar  avatar  avatar 康家浩 avatar  avatar zcl avatar ShiYiCong avatar

Watchers

Rui Xia avatar NUSTM Admin avatar  avatar  avatar 康家浩 avatar

Forkers

lilinnk

shark's Issues

夏老师您好,我在跑您们代码时候遇到点问题

您们requirements.txt里第一行写的是certifi @ file:///croot/certifi_1665076670883/work/certifi

我在运行"pip install -r requirements.txt"安装的时候,报错ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory: '/croot/certifi_1665076670883/work/certifi'

是因为我的电脑上没有这个路径

有啥办法能解决吗

Can't softmax to get emotion predict

I have print the emotion predict but not working.
image

The result is :
image

Can you teach me how to take the emotion predict with 7 label like in paper.

RECCON数据集以及其他模型的修改代码疑惑

你好,我有两个疑惑,想要请教同学一下:
1.我在论文中有看到模型在RECCON数据集上也进行了效果测试,但是文件中并没有给出RECCON经过处理后的文件data文件夹中只有ECF数据集,请问可以上传一下处理后的RECCON数据集吗?或者上传下处理原始RECCON数据集的代码也可以。
2.论文中还有将其他模型在两个数据集上进行了效果比较,并且论文里也提到了对原始模型进行了一些修改,但是在代码里好像没有看到这一块的模型修改代码,以及在两个数据集上的运行代码,请问方便上传下吗?麻烦啦
如果不方便上传可以私发我嘛?想要复现下论文中的结果,邮箱:[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.