SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1908.11540 · 2019

DialogueGCN: A Graph Convolutional Neural Network for Emotion Recognition in Conversation

arXiv · PDF · Open in the Atlas

Code that ran

3 of 4 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 0 violated it and 2 have no contract verdict; 0 failures of our instrument; 1 no recorded run), measured 2026-11-21; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/1908.11540.json · badge: /api/ran/1908.11540.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
SenticNet/conv-emotion canonical (classifier label)
classifier basis: census
3 ran · 1 no recorded run
FunctionStatusWhere it lives
batch_graphify Ran
ran on a synthesized input
SenticNet/conv-emotion/DialogueGCN/model.py
code served (permissive licence) · get_code("b5c1a82b88e2f90b")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn
import numpy as np

torch.manual_seed(0)

# Build a minimal attention model that accepts (features, lengths, edge_ind)
class MinimalAttModel(nn.Module):
    def __init__(self, feature_dim):
        super().__init__()
        self.feature_dim = feature_dim
    
    def forward(self, features, lengths, edge_ind):
        # features shape: (seq_len, batch_size, feature_dim)
        # Return scores with shape (batch_size, max_seq_len, max_seq_len)
        batch_size = features.size(1)
        max_len = features.size(0)
        # Return dummy scores for each batch and edge pair
        scores = torch.rand(batch_size, max_len, max_len)
        return scores

# Create attention model
att_model = MinimalAttModel(feature_dim=4)

# Create small test data
batch_size = 2
seq_len_1 = 3
seq_len_2 = 2
feature_dim = 4

# features: (max_seq_len, batch_size, feature_dim)
features = torch.randn(3, batch_size, feature_dim)

# qmask: (max_seq_len, batch_size, num_speakers)
# Each utterance assigned to exactly one speaker
qmask = torch.zeros(3, batch_size, 2)  # 2 speakers
qmask[0, 0, 0] = 1  # utterance 0 in batch 0 -> speaker 0
qmask[1, 0, 1] = 1  # utterance 1 in batch 0 -> speaker 1
qmask[2, 0, 0] = 1  # utterance 2 in batch 0 -> speaker 0
qmask[0, 1, 1] = 1  # utterance 0 in batch 1 -> speaker 1
qmask[1, 1, 0] = 1  # utterance 1 in batch 1 -> speaker 0

# lengths: list of actual sequence lengths per batch
lengths = [3, 2]

# window parameters
window_past = 1
window_future = 1

# edge_type_mapping: maps speaker pair + direction to edge type id
edge_type_mapping = {
    '00' + '0': 0,  # speaker 0 -> 0, forward
    '00' + '1': 1,  # speaker 0 -> 0, backward
    '01' + '0': 2,  # speaker 0 -> 1, forward
    '01' + '1': 3,  # speaker 0 -> 1, backward
    '10' + '0': 4,  # speaker 1 -> 0, forward
    '10' + '1': 5,  # speaker 1 -> 0, backward
    '11' + '0': 6,  # speaker 1 -> 1, forward
    '11' + '1': 7,  # speaker 1 -> 1, backward
}

# no_cuda flag
no_cuda = True

ARGS = {
    'features': features,
    'qmask': qmask,
    'lengths': lengths,
    'window_past': window_past,
    'window_future': window_future,
    'edge_type_mapping': edge_type_mapping,
    'att_model': att_model,
    'no_cuda': no_cuda,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
edge_perms Ran
ran, honoured the contract we drafted
SenticNet/conv-emotion/DialogueGCN/model.py
code served (permissive licence) · get_code("2097cedad5494c1c")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 2, dtype family int; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np
import itertools
import random
import copy
import math

ARGS = {
    "l": 5,
    "window_past": 2,
    "window_future": 1
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 2, dtype family int — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
pad Ran
ran on a synthesized input
SenticNet/conv-emotion/DialogueGCN/model.py
code served (permissive licence) · get_code("10f8b1f4c189a2d5")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 2, dtype family float, shape (5, 4) as a later run recorded it. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
from torch.autograd import Variable

torch.manual_seed(0)

# Create a small tensor with shape (2, 4) - 2 is the sequence length, 4 is feature dim
tensor_arg = torch.randn(2, 4)

# Create a Variable from the tensor (for testing the Variable branch)
# Note: In modern PyTorch, Variable is deprecated and tensors are Variables by default
var_arg = Variable(torch.randn(3, 5))

# Test with a length that requires padding
length_arg = 5

# no_cuda flag - set to True since we're CPU-only
no_cuda_arg = True

# Test case 1: Regular tensor that needs padding
ARGS = {
    "tensor": tensor_arg,
    "length": length_arg,
    "no_cuda": no_cuda_arg
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (5, 4) — shape (5, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
bert_batch_preprocessing Not yet run
unverified (harvested, no recorded run)
SenticNet/conv-emotion/emotion-cause-extraction/Rank-Emotion-Cause/src/data_loader.py
code served (permissive licence) · get_code("7b9bd5de8e365f4f")
How it ran

no invocation recorded.

Also present in other papers' code

Of 4 samples lifted from this paper's linked repositories, 4 carry a function identity and 0 do not. Of the 4 distinct functions with an identity, 2 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 2 later) and 2 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
edge_perms 1 other paper
1 later
2203.02385 (2022-03)
MM-DFN: Multimodal Dynamic Fusion Network for Emotion Recognition in Conversations
pad 1 other paper
1 later
2203.02385 (2022-03)
MM-DFN: Multimodal Dynamic Fusion Network for Emotion Recognition in Conversations

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-21.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Emotion recognition in conversation (ERC) has received much attention, lately, from researchers due to its potential widespread applications in diverse areas, such as health-care, education, and human resources. In this paper, we present Dialogue Graph Convolutional Network (DialogueGCN), a graph neural network based approach to ERC. We leverage self and inter-speaker dependency of the interlocutors to model conversational context for emotion recognition. Through the graph network, DialogueGCN addresses context propagation issues present in the current RNN-based methods. We empirically show that this method alleviates such issues, while outperforming the current state of the art on a number of benchmark emotion classification datasets.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("1908.11540")
get_code_for_paper("1908.11540")
have("1908.11540")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/1908.11540.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/1908.11540.svg)](https://syntology.ai/paper/1908.11540)

Connect an agent — have() is free.