SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2022.findings-emnlp.427 · EMNLP Findings · 2022

2022.findings-emnlp.427

Jishnu Chowdhury, Cornelia Caragea, Krishna Garg

Open in the Atlas

Code that ran

7 of 8 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; 2 honoured the contract we drafted, 1 violated it and 3 have no contract verdict; 1 failure of our instrument; 1 no recorded run), measured 2026-11-24; 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/2022.findings-emnlp.427.json · badge: /api/ran/2022.findings-emnlp.427.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
kgarg8/FullTextKP canonical (classifier label)
classifier basis: census
7 ran · 1 no recorded run
FunctionStatusWhere it lives
convert_pytorch_state_dict_to_flax Ran
ran on a synthesized input
kgarg8/FullTextKP/transformers/modeling_flax_pytorch_utils.py
code served (permissive licence) · get_code("cb99064a45dcb4dc")
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 dict. The image it ran in was 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 jax.numpy as jnp
import numpy as np
from flax.traverse_util import flatten_dict, unflatten_dict

torch.manual_seed(0)

# Create a minimal PyTorch state dict
pt_state_dict = {
    'layer.weight': torch.randn(3, 4),
    'layer.bias': torch.randn(3),
    'conv.weight': torch.randn(5, 4, 3, 3),
}

# Create a minimal Flax model mock with the required attributes and methods
class MockFlaxModel:
    def __init__(self):
        self.base_model_prefix = 'model'
        # Create params dict with matching structure for the converted keys
        self.params = {
            'layer': {
                'kernel': jnp.ones((4, 3)),
                'bias': jnp.ones(3),
            },
            'conv': {
                'kernel': jnp.ones((3, 3, 4, 5)),
            }
        }

flax_model = MockFlaxModel()

ARGS = {
    'pt_state_dict': pt_state_dict,
    'flax_model': flax_model,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
flax, jax, numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not 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
convert_tf_weight_name_to_pt_weight_name Ran
ran on a synthesized input
kgarg8/FullTextKP/transformers/modeling_tf_pytorch_utils.py
code served (permissive licence) · get_code("5f5d99a0dee8c2b1")
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, ndim 1, dtype family float; 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 re

def convert_tf_weight_name_to_pt_weight_name(tf_name, start_prefix_to_remove=''):
    """
    Convert a TF 2.0 model variable name in a pytorch model weight name.

    Conventions for TF2.0 scopes -> PyTorch attribute names conversions:

        - '$1___$2' is replaced by $2 (can be used to duplicate or remove layers in TF2.0 vs PyTorch)
        - '_._' is replaced by a new level separation (can be used to convert TF2.0 lists in PyTorch nn.ModulesList)

    return tuple with:

        - pytorch model weight name
        - transpose: boolean indicating whether TF2.0 and PyTorch weights matrices are transposed with regards to each
          other
    """
    tf_name = tf_name.replace(':0', '')
    tf_name = re.sub('/[^/]*___([^/]*)/', '/\\1/', tf_name)
    tf_name = tf_name.replace('_._', '/')
    tf_name = re.sub('//+', '/', tf_name)
    tf_name = tf_name.split('/')
    if len(tf_name) > 1:
        tf_name = tf_name[1:]
    transpose = bool(tf_name[-1] in ['kernel', 'pointwise_kernel', 'depthwise_kernel'] or 'emb_projs' in tf_name or 'out_projs' in tf_name)
    if tf_name[-1] == 'kernel' or tf_name[-1] == 'embeddings' or tf_name[-1] == 'gamma':
        tf_name[-1] = 'weight'
    if tf_name[-1] == 'beta':
        tf_name[-1] = 'bias'
    if tf_name[-1] == 'pointwise_kernel' or tf_name[-1] == 'depthwise_kernel':
        tf_name[-1] = tf_name[-1].replace('_kernel', '.weight')
    tf_name = '.'.join(tf_name)
    if start_prefix_to_remove:
        tf_name = tf_name.replace(start_prefix_to_remove, '', 1)
    return (tf_name, transpose)


ARGS = {
    'tf_name': 'layer/dense/kernel:0',
    'start_prefix_to_remove': ''
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, dtype family float — a tuple 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
gelu Ran
ran, honoured the contract we drafted
kgarg8/FullTextKP/summarization/bert_model.py
pointer only (licence: MIT); the stored copy get_code serves, from shmsw25/qa-hard-em, is pointer only (licence: NONE) · get_code("40e9fee2e0b7e278")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from shmsw25/qa-hard-em, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

infer_metric_tags_from_eval_results Ran
ran; our contract draft was wrong, not the code
kgarg8/FullTextKP/transformers/modelcard.py
code served (permissive licence) · get_code("119a3500b4c42ff8")
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 dict. The image it ran in was 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 numpy as np

ARGS = {
    'eval_results': {
        'accuracy': 0.95,
        'BLEU': 0.87,
        'F1': 0.92,
        'matthews_correlation': 0.88,
        'Pearsonr': 0.89,
        'precision': 0.91,
        'Recall': 0.90,
        'rouge1': 0.85,
        'sacrebleu': 0.86,
        'spearmanr': 0.84
    }
}
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 dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not 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
parse_log_history Ran
ran on a synthesized input
kgarg8/FullTextKP/transformers/modelcard.py
code served (permissive licence) · get_code("e72f8248e0a3eabe")
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. 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 numpy as np

torch.manual_seed(0)

# Construct a realistic log_history from a Hugging Face Trainer
# The function parses this to extract intermediate eval results and final results

log_history = [
    {
        "learning_rate": 5e-5,
        "loss": 2.1,
        "step": 100,
        "epoch": 0.5,
    },
    {
        "eval_loss": 1.8,
        "eval_accuracy": 0.75,
        "eval_f1": 0.72,
        "epoch": 0.5,
        "step": 100,
        "eval_runtime": 10.5,
        "eval_samples_per_second": 95.2,
        "eval_steps_per_second": 9.5,
    },
    {
        "learning_rate": 4.5e-5,
        "loss": 1.5,
        "step": 200,
        "epoch": 1.0,
    },
    {
        "eval_loss": 1.2,
        "eval_accuracy": 0.82,
        "eval_f1": 0.80,
        "epoch": 1.0,
        "step": 200,
        "eval_runtime": 10.2,
        "eval_samples_per_second": 98.0,
        "eval_steps_per_second": 9.8,
    },
    {
        "train_runtime": 120.5,
        "train_samples_per_second": 8.3,
        "train_steps_per_second": 1.66,
        "epoch": 1.0,
    },
    {
        "eval_loss": 1.1,
        "eval_accuracy": 0.85,
        "eval_f1": 0.83,
        "eval_runtime": 10.0,
        "eval_samples_per_second": 100.0,
        "eval_steps_per_second": 10.0,
    },
]

ARGS = {
    "log_history": log_history,
}
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
quick_gelu Ran
ran, honoured the contract we drafted
kgarg8/FullTextKP/transformers/modeling_flax_utils.py
pointer only (licence: MIT); the stored copy get_code serves, from shen8424/CORE, is pointer only (licence: NONE) · get_code("a66d2b78670c85e1")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from shen8424/CORE, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

str2bool Ran
ran, violated the contract we drafted
kgarg8/FullTextKP/parser.py
code served (permissive licence) · get_code("7c508037b40522af")
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) and returned bool, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was 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 argparse

def str2bool(v):
    if isinstance(v, bool):
        return v
    if v.lower() in ('yes', 'true', 't', 'y', '1'):
        return True
    elif v.lower() in ('no', 'false', 'f', 'n', '0'):
        return False
    else:
        raise argparse.ArgumentTypeError('Boolean value expected.')

# Test cases for str2bool
ARGS = {
    'v': 'true'  # string input that should convert to boolean
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type bool, ndim 0, dtype family float, shape () — shape () 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
is_hf_dataset Not yet run
unverified (harvested, no recorded run)
kgarg8/FullTextKP/transformers/modelcard.py
pointer only (licence: MIT); the stored copy get_code serves, from Young1993/tlm, is pointer only (licence: NONE) · get_code("569927b3efc92b80")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from Young1993/tlm, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 8 samples lifted from this paper's linked repositories, 8 carry a function identity and 0 do not. Of the 8 distinct functions with an identity, 6 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 0 the same month, 6 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
gelu 198 other papers
96 dated earlier, 69 later, 33 same year, order not determinable · 32 only as an assembly brick
1408.5882 (2014-08)
Convolutional Neural Networks for Sentence Classification
1810.04805 (2018-10)
BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding
1901.10125 (2019-01)
Glyce: Glyph-vectors for Chinese Character Representations
and 195 more not named here
str2bool 175 other papers
45 dated earlier, 115 later, 15 same year, order not determinable · 2 only as an assembly brick
1406.6247 (2014-06)
Recurrent Models of Visual Attention
1603.09382 (2016-03)
Deep Networks with Stochastic Depth
1710.10196 (2017-10)
Progressive Growing of GANs for Improved Quality, Stability, and Variation
and 172 more not named here
infer_metric_tags_from_eval_results 19 other papers
19 later
2305.15756 (2023-05)
UniTRec: A Unified Text-to-Text Transformer and Joint Contrastive Learning Framework for Text-based Recommendation
2310.05107 (2023-10)
OV-PARTS: Towards Open-Vocabulary Part Segmentation
2310.09832 (2023-10)
Merging Experts into One: Improving Computational Efficiency of Mixture of Experts
and 16 more not named here
quick_gelu 17 other papers
17 later
2303.14582 (2023-03)
Identification of Negative Transfers in Multitask Learning Using Surrogate Models
2305.15756 (2023-05)
UniTRec: A Unified Text-to-Text Transformer and Joint Contrastive Learning Framework for Text-based Recommendation
2310.05107 (2023-10)
OV-PARTS: Towards Open-Vocabulary Part Segmentation
and 14 more not named here
convert_tf_weight_name_to_pt_weight_name 3 other papers
1 dated earlier, 1 later, 1 same year, order not determinable
2109.03808 (2021-09)
Smelting Gold and Silver for Improved Multilingual AMR-to-Text Generation
2203.10652 (2022-03)
Continual Sequence Generation with Adaptive Compositional Modules
2303.14582 (2023-03)
Identification of Negative Transfers in Multitask Learning Using Surrogate Models
is_hf_dataset 2 other papers
2 later
2305.15756 (2023-05)
UniTRec: A Unified Text-to-Text Transformer and Joint Contrastive Learning Framework for Text-based Recommendation
2310.18738 (2023-10)
TLM: Token-Level Masking for Transformers

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-24.

Repositories linked to this paper

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

Abstract

Keyphrase generation aims at generating important phrases (keyphrases) that best describe a given document. In scholarly domains, current approaches have largely used only the title and abstract of the articles to generate keyphrases. In this paper, we comprehensively explore whether the integration of additional information from the full text of a given article or from semantically similar articles can be helpful for a neural keyphrase generation model or not. We discover that adding sentences from the full text, particularly in the form of the extractive summary of the article can significantly improve the generation of both types of keyphrases that are either present or absent from the text. Experimental results with three widely used models for keyphrase generation along with one of the latest transformer models suitable for longer documents, Longformer Encoder-Decoder (LED) validate the observation. We also present a new large-scale scholarly dataset FULLTEX-TKP for keyphrase generation. Unlike prior large-scale datasets, FULLTEXTKP includes the full text of the articles along with the title and abstract. We release the source code at https://github.com/kgarg8/FullTextKP.

For agents

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

get_harvested_code_for_paper("2022.findings-emnlp.427")
get_code_for_paper("2022.findings-emnlp.427")
have("2022.findings-emnlp.427")

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

curl https://syntology.ai/api/ran/2022.findings-emnlp.427.json

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

[![Syntology run record](https://syntology.ai/api/ran/2022.findings-emnlp.427.svg)](https://syntology.ai/paper/2022.findings-emnlp.427)

Connect an agent — have() is free.