All Projects → declare-lab → RECCON

declare-lab / RECCON

Licence: other
This repository contains the dataset and the PyTorch implementations of the models from the paper Recognizing Emotion Cause in Conversations.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to RECCON

causaldag
Python package for the creation, manipulation, and learning of Causal DAGs
Stars: ✭ 82 (-34.92%)
Mutual labels:  inference, causality, causal-inference, causal-models
Dowhy
DoWhy is a Python library for causal inference that supports explicit modeling and testing of causal assumptions. DoWhy is based on a unified language for causal inference, combining causal graphical models and potential outcomes frameworks.
Stars: ✭ 3,480 (+2661.9%)
Mutual labels:  causality, causal-inference, causal-models
emotion-recognition-GAN
This project is a semi-supervised approach to detect emotions on faces in-the-wild using GAN
Stars: ✭ 20 (-84.13%)
Mutual labels:  emotion, emotion-recognition
sklearn-audio-classification
An in-depth analysis of audio classification on the RAVDESS dataset. Feature engineering, hyperparameter optimization, model evaluation, and cross-validation with a variety of ML techniques and MLP
Stars: ✭ 31 (-75.4%)
Mutual labels:  emotion, emotion-recognition
Deep-Learning-for-Expression-Recognition-in-Image-Sequences
The project uses state of the art deep learning on collected data for automatic analysis of emotions.
Stars: ✭ 26 (-79.37%)
Mutual labels:  emotion, emotion-recognition
Grakn
TypeDB: a strongly-typed database
Stars: ✭ 2,947 (+2238.89%)
Mutual labels:  inference, reasoning
Resnet-Emotion-Recognition
Identifies emotion(s) from user facial expressions
Stars: ✭ 21 (-83.33%)
Mutual labels:  emotion, emotion-recognition
causal-ml
Must-read papers and resources related to causal inference and machine (deep) learning
Stars: ✭ 387 (+207.14%)
Mutual labels:  causal-inference, causal-models
typedb
TypeDB: a strongly-typed database
Stars: ✭ 3,152 (+2401.59%)
Mutual labels:  inference, reasoning
cfml tools
My collection of causal inference algorithms built on top of accessible, simple, out-of-the-box ML methods, aimed at being explainable and useful in the business context
Stars: ✭ 24 (-80.95%)
Mutual labels:  causality, causal-inference
Emotion-Cause-Analysis-Papers
Collection of papers on Emotion Cause Analysis
Stars: ✭ 63 (-50%)
Mutual labels:  emotion-cause, emotion-cause-pair-extraction
cfvqa
[CVPR 2021] Counterfactual VQA: A Cause-Effect Look at Language Bias
Stars: ✭ 96 (-23.81%)
Mutual labels:  causality, causal-inference
Delta
DELTA is a deep learning based natural language and speech processing platform.
Stars: ✭ 1,479 (+1073.81%)
Mutual labels:  inference, emotion-recognition
typeql
TypeQL: the query language of TypeDB - a strongly-typed database
Stars: ✭ 157 (+24.6%)
Mutual labels:  inference, reasoning
Emotion and Polarity SO
An emotion classifier of text containing technical content from the SE domain
Stars: ✭ 74 (-41.27%)
Mutual labels:  emotion, emotion-recognition
dissertation
🎓 📜 This repository holds my final year and dissertation project during my time at the University of Lincoln titled 'Deep Learning for Emotion Recognition in Cartoons'.
Stars: ✭ 22 (-82.54%)
Mutual labels:  emotion, emotion-recognition
causal-learn
Causal Discovery for Python. Translation and extension of the Tetrad Java code.
Stars: ✭ 428 (+239.68%)
Mutual labels:  causality, causal-inference
few shot dialogue generation
Dialogue Knowledge Transfer Networks (DiKTNet)
Stars: ✭ 24 (-80.95%)
Mutual labels:  dialogue-systems, dialogue-generation
Meld
MELD: A Multimodal Multi-Party Dataset for Emotion Recognition in Conversation
Stars: ✭ 373 (+196.03%)
Mutual labels:  emotion, dialogue-systems
DialogueGraph
Open-source node-based tool for developing branching conversation trees
Stars: ✭ 133 (+5.56%)
Mutual labels:  conversations, dialogue-systems

RECCON: Recognizing Emotion Cause in CONversations

PWC

PWC

🔥🔥🔥 New baselines: visit emotion-cause-extraction

This repository contains the dataset and the pytorch implementations of the models from the paper Recognizing Emotion Cause in Conversations.

Overview of the Task

Alt text

Given an utterance U, labeled with emotion E, the task is to extract the causal spans S from the conversational history H (including utterance U) that sufficiently represent the causes of emotion E.

Dataset

The original annotated dataset can be found in the json files in the data/original_annotation folder. The dataset with negative examples for the Causal Span Extraction and the Causal Entailment of Emotion tasks can be found in data/subtask1/ and data/subtask2/ folders respectively.

Data Format

The annotations and dialogues of the DailyDialog and IEMOCAP are available at data/original_annotation/*.json. Each instance in the JSON file is allotted one identifier (e.g. "tr_10180") which is a list having a dictionary of the following items for each utterance:

Key Value
turn Utterance index starting from 1.
speaker Speaker of the target utterance.
utterance The text of the utterance.
emotion Emotion label of the utterance.
expanded emotion cause evidence Utterance indices indicating the cause of a non neutral target utterance.
expanded emotion cause spans Causal spans corresponding to the evidence utterances.
explanation Only if the annotator wrote any explanation about the emotion cause.
type The type of the emotion cause.

Example format in JSON:

{
  "tr_10180": 
  [
    [
        {
            "turn": 1,
            "speaker": "A",
            "utterance": "It's time for desserts ! Are you still hungry ?",
            "emotion": "neutral"
        },
        {
            "turn": 2,
            "speaker": "B",
            "utterance": "I've always got room for something sweet !",
            "emotion": "happiness",
            "expanded emotion cause evidence": [
                1,
                2
            ],
            "expanded emotion cause span": [
                "desserts",
                "I've always got room for something sweet !"
            ],
            "type": [
                "no-context",
                "inter-personal"
            ]
        }

    ]
  ]
}

Causal Span Extraction

We formulate the Causal Span Extraction task as a question answering task. To train RoBERTa or SpanBERT models for this task on the DailyDialog dataset use the following command:

python train_qa.py --model [rob|span] --fold [1|2|3] --context

Then, evlaution can be carried out on DailyDialog or IEMOCAP as follows:

python eval_qa.py --model [rob|span] --fold [1|2|3] --context --dataset [dailydialog|iemocap]

Causal Entailment of Emotion

The Causal Entailment of Emotion task is formulated as a classification task. To train RoBERTa-Base or RoBERTa-Large models for this task on the DailyDialog dataset use the following command:

python train_classification.py --model [rob|robl] --fold [1|2|3] --context

Then, evlaution can be carried out on DailyDialog or IEMOCAP as follows:

python eval_classification.py --model [rob|robl] --fold [1|2|3] --context --dataset [dailydialog|iemocap]

Without context models can be trained and evaluated by removing --context from the above commands.

Citation

Recognizing Emotion Cause in Conversations. Soujanya Poria, Navonil Majumder, Devamanyu Hazarika, Deepanway Ghosal, Rishabh Bhardwaj, Samson Yu Bai Jian, Pengfei Hong, Romila Ghosh, Abhinaba Roy, Niyati Chhaya, Alexander Gelbukh, Rada Mihalcea. Cognitive Computation (2021).

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].