SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1904.01608 · 2019

Structural Scaffolds for Citation Intent Classification in Scientific Publications

arXiv · PDF · Open in the Atlas

Code that ran

4 of 5 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; 0 honoured the contract we drafted, 0 violated it and 4 have no contract verdict; 0 failures of our instrument; 1 no recorded run), measured 2026-11-22; 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/1904.01608.json · badge: /api/ran/1904.01608.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
allenai/scicite canonical (classifier label)
classifier basis: census
4 ran · 1 no recorded run
FunctionStatusWhere it lives
format_classification_report Ran
ran on a synthesized input
allenai/scicite/scicite/helper.py
code served (permissive licence) · get_code("38de940cb5880659")
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 str. 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 numpy as np

# Analyze the function to understand what it needs:
# - precisions: array-like of precision values
# - recalls: array-like of recall values
# - f1s: array-like of f1-score values
# - supports: array-like of support counts
# - labels: list/array of label names
# - digits: int for formatting precision (default 4)

# The function uses:
# - len() on labels
# - zip(labels, precisions, recalls, f1s, supports)
# - np.average() with weights parameter
# - np.sum()
# - String formatting

# Create small test data
num_classes = 3

precisions = np.array([0.85, 0.92, 0.78])
recalls = np.array([0.88, 0.90, 0.81])
f1s = np.array([0.865, 0.91, 0.795])
supports = np.array([100, 120, 80])
labels = ['class_a', 'class_b', 'class_c']
digits = 4

ARGS = {
    'precisions': precisions,
    'recalls': recalls,
    'f1s': f1s,
    'supports': supports,
    'labels': labels,
    'digits': digits
}
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 str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
get_values_from_list Ran
ran on a synthesized input
allenai/scicite/scicite/compute_features.py
code served (permissive licence) · get_code("f6dc9b8239d238b8")
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 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 torch
import numpy as np

torch.manual_seed(0)

# Test case 1: is_class=True - list of objects with attributes
class TestObject:
    def __init__(self, name, value):
        self.name = name
        self.value = value

obj1 = TestObject("first", 10)
obj2 = TestObject("second", 20)
inplst_class = [obj1, obj2]

# Test case 2: is_class=False - list of dictionaries
inplst_dict = [
    {"name": "first", "value": 10},
    {"name": "second", "value": 20}
]

# For the class-based test
ARGS = {
    "inplst": inplst_class,
    "key": "name",
    "is_class": True
}
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 list, ndim 1, dtype family float — 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
is_in_lexicon Ran
ran on a synthesized input
allenai/scicite/scicite/compute_features.py
code served (permissive licence) · get_code("2ee438c5e132ba51")
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 2, 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 torch

# Create a simple lexicon with categories and word lists
lexicon = {
    "positive": ["good", "great", "excellent", "amazing"],
    "negative": ["bad", "terrible", "awful", "horrible"],
    "neutral": ["okay", "fine", "decent"]
}

# Create a test sentence
sentence = "This is a great and good movie but also a bit terrible"

# Create ARGS dictionary with all required parameters
ARGS = {
    "lexicon": lexicon,
    "sentence": sentence,
    "count": False
}
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 tuple, ndim 2, 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
read_jurgens_jsonline Ran
ran on a synthesized input
allenai/scicite/scicite/data.py
code served (permissive licence) · get_code("7c5400088745676b")
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 Citation. 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

# Define ARGS dictionary with all parameters for read_jurgens_jsonline
ARGS = {
    "ex": {
        "text": "This paper builds on the work of Smith et al. to improve performance.",
        "citing_paper_id": "paper_2024_001",
        "cited_paper_id": "paper_2020_042",
        "citing_paper_title": "Advances in Neural Networks",
        "cited_paper_title": "Foundational Deep Learning Methods",
        "citing_paper_year": 2024,
        "cited_paper_year": 2020,
        "citing_author_ids": ["author_1", "author_2"],
        "cited_author_ids": ["author_3", "author_4"],
        "extended_context": "The cited work introduced a novel approach that we extend here.",
        "section_number": 2,
        "section_title": "Related Work",
        "intent": ["extends", "builds-on"],
        "cite_marker_offset": [45, 55],
        "sents_before": ["Previous work has been limited.", "We address these limitations."],
        "sents_after": ["Our approach improves upon theirs.", "We demonstrate significant gains."],
        "cleaned_cite_text": "This paper builds on the work of [CITATION] to improve performance.",
        "citation_id": "citation_2024_001"
    }
}
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 Citation — a Citation output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Citation 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
partial_fmeasure_multilabel Not yet run
unverified (harvested, no recorded run)
allenai/scicite/scicite/helper.py
code served (permissive licence) · get_code("b6bccabb0e613e32")
How it ran

no invocation recorded.

Also present in other papers' code

Of 5 samples lifted from this paper's linked repositories, 5 carry a function identity and 0 do not. Of the 5 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 5 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.

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

Repositories linked to this paper

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

Abstract

Identifying the intent of a citation in scientific papers (e.g., background information, use of methods, comparing results) is critical for machine reading of individual publications and automated analysis of the scientific literature. We propose structural scaffolds, a multitask model to incorporate structural information of scientific papers into citations for effective classification of citation intents. Our model achieves a new state-of-the-art on an existing ACL anthology dataset (ACL-ARC) with a 13.3% absolute increase in F1 score, without relying on external linguistic resources or hand-engineered features as done in existing methods. In addition, we introduce a new dataset of citation intents (SciCite) which is more than five times larger and covers multiple scientific domains compared with existing datasets. Our code and data are available at: https://github.com/allenai/scicite.

For agents

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

get_harvested_code_for_paper("1904.01608")
get_code_for_paper("1904.01608")
have("1904.01608")

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

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

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

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

Connect an agent — have() is free.