SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2305.19204 · ACL · 2023

SWIPE: A Dataset for Document-Level Simplification of Wikipedia Pages

Chien-Sheng Wu, Shafiq Joty, Caiming Xiong, Jesse Vig, Philippe Laban, Wojciech Kryscinski

arXiv · PDF · Open in the Atlas

Code that ran

11 of 11 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 11 have no contract verdict; 0 failures of our instrument; 0 no recorded run), measured 2026-11-24; 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/2305.19204.json · badge: /api/ran/2305.19204.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
Salesforce/simplification canonical (classifier label)
classifier basis: census
11 ran · 0 no recorded run
FunctionStatusWhere it lives
compute_group_score Ran
ran on a synthesized input
Salesforce/simplification/utils_eval.py
code served (permissive licence) · get_code("3e9e9ed36be01dfd")
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 float64, ndim 0, 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 numpy as np

# Construct valid arguments for compute_group_score

# annotations: list of dicts, each with 'edit_idxs' key containing indices
annotations = [
    {'edit_idxs': [0, 1, 2]},
    {'edit_idxs': [1, 2, 3]},
    {'edit_idxs': [4, 5]},
]

# pred_groups: list of lists, where each sublist contains indices that belong to that group
pred_groups = [
    [0, 1],
    [2, 3],
    [4, 5],
]

ARGS = {
    'annotations': annotations,
    'pred_groups': pred_groups,
}
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 float64, ndim 0, dtype family float — no output shape is stated: observe_signature.py recorded float ndim 0, which disagrees with the fixture run
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
compute_groups_from_BI Ran
ran on a synthesized input
Salesforce/simplification/utils_bi.py
code served (permissive licence) · get_code("65eaae2c06d16011")
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. 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

torch.manual_seed(0)

# The function expects a dictionary mapping operation indices (opi) to 'B' or 'I' tags
# This represents BIO (Begin, Inside, Outside) tagging scheme commonly used in NLP
# The function groups consecutive operations based on these tags

ARGS = {
    "opi2BI": {
        0: 'B',
        1: 'I',
        2: 'I',
        3: 'B',
        4: 'I',
        5: 'B',
    }
}
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 list — a list 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
compute_type_score Ran
ran on a synthesized input
Salesforce/simplification/utils_eval.py
code served (permissive licence) · get_code("0aa81ae6d8966015")
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 numpy as np

# Analyze the function to understand what's needed:
# - dataset: list of dicts with 'annotations' key
# - predictions: list of lists of dicts with 'opis' and 'category' keys
# - high_level: boolean (default False)
# Each annotation dict needs 'edit_idxs' and 'edit_type'
# Each pred_group needs 'opis' (list) and 'category' (string)

# Create a minimal valid dataset
dataset = [
    {
        'annotations': [
            {
                'edit_idxs': [0, 1],
                'edit_type': 'semantic_deletion'
            },
            {
                'edit_idxs': [2],
                'edit_type': 'syntactic_generic'
            }
        ]
    },
    {
        'annotations': [
            {
                'edit_idxs': [0],
                'edit_type': 'lexical_entity'
            },
            {
                'edit_idxs': [1, 2],
                'edit_type': 'discourse_anaphora_insertion'
            }
        ]
    }
]

# Create predictions matching the dataset length
predictions = [
    [
        {
            'opis': [0, 1],
            'category': 'semantic_elaboration_background'
        },
        {
            'opis': [2],
            'category': 'syntactic_deletion'
        }
    ],
    [
        {
            'opis': [0],
            'category': 'lexical_generic'
        },
        {
            'opis': [1, 2],
            'category': 'discourse_anaphora_resolution'
        }
    ]
]

# Define the arguments
ARGS = {
    'dataset': dataset,
    'predictions': predictions,
    'high_level': False
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, sklearn — 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
compute_type_score_by_class Ran
ran on a synthesized input
Salesforce/simplification/utils_eval.py
code served (permissive licence) · get_code("2de3cf15401ea7bf")
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 numpy as np

# Construct dataset and predictions that match the function's expected structure

dataset = [
    {
        'annotations': [
            {
                'edit_type': 'discourse',
                'edit_idxs': [0, 1]
            },
            {
                'edit_type': 'semantic',
                'edit_idxs': [1]
            }
        ]
    },
    {
        'annotations': [
            {
                'edit_type': 'syntactic',
                'edit_idxs': [0]
            },
            {
                'edit_type': 'lexical',
                'edit_idxs': [2]
            }
        ]
    }
]

predictions = [
    [
        {
            'opis': [0, 1],
            'category': ['discourse', 'semantic']
        },
        {
            'opis': [2],
            'category': ['syntactic']
        }
    ],
    [
        {
            'opis': [0],
            'category': ['syntactic']
        },
        {
            'opis': [2],
            'category': ['lexical', 'nonsim']
        }
    ]
]

ARGS = {
    'dataset': dataset,
    'predictions': predictions,
    'high_level': False
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, sklearn — 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
consolidate_annotations Ran
ran on a synthesized input
Salesforce/simplification/utils_categories.py
code served (permissive licence) · get_code("db7e78588d51afa3")
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.

# Setup code for consolidate_annotations

# Create a list of annotation dictionaries to pass as the annotations parameter
annotations = [
    {
        'opis': 'This is an elaboration example',
        'category': 'elaboration'
    },
    {
        'opis': 'This is a lexical edit',
        'category': 'lexical_substitution'
    },
    {
        'opis': 'This should be filtered out',
        'category': 'semantic_hypernymy'
    },
    {
        'opis': 'This is a deletion',
        'category': 'semantic_deletion'
    },
    {
        'opis': 'Another filtered entry',
        'category': 'nonsim_general'
    },
    {
        'opis': 'Anaphora example',
        'category': 'anaphora_resolution'
    },
    {
        'opis': 'Sentence splitting',
        'category': 'splitting'
    },
    {
        'opis': 'Sentence fusion',
        'category': 'fusion'
    },
    {
        'opis': 'Format change',
        'category': 'format_change'
    },
    {
        'opis': 'Reordering example',
        'category': 'reordering'
    },
    {
        'opis': 'Syntactic edit',
        'category': 'syntactic_generic'
    }
]

ARGS = {
    'annotations': annotations
}
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 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
edit2consolidated Ran
ran on a synthesized input
Salesforce/simplification/utils_categories.py
code served (permissive licence) · get_code("6009b4cca1948457")
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 torch
import numpy as np

# The function edit2consolidated takes a single parameter: category (a string)
# It performs string operations (lower(), in checks, equality checks)
# and returns a consolidated category name

ARGS = {
    'category': 'elaboration'
}
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 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
fix_punctuation Ran
ran on a synthesized input
Salesforce/simplification/utils_diff.py
code served (permissive licence) · get_code("d6bf8cdbd0649331")
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 torch

ARGS = {
    "text": "Hello world . This is a test , with some punctuation ! Are you ready ? Let's go ; here : we have ( parentheses ) and \" quotes \" and ' apostrophes '"
}
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 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_full_label Ran
ran on a synthesized input
Salesforce/simplification/utils_categories.py
code served (permissive licence) · get_code("83acadc63edb67a4")
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 torch
import numpy as np

torch.manual_seed(0)

# Analyze the function:
# - group: a string that will be lowercased
# - edit_type: a string that will be lowercased and have replacements applied
# The function just does string operations, so we need simple string arguments

ARGS = {
    "group": "MyGroup",
    "edit_type": "Insert - Replace"
}
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 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
postprocess_groups Ran
ran on a synthesized input
Salesforce/simplification/utils_bi.py
code served (permissive licence) · get_code("cd60433ccacac5f9")
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 numpy as np

# Construct valid arguments for postprocess_groups

groups = [
    {
        'category': 'discourse_reordering',
        'opis': [0, 2, 5]
    },
    {
        'category': 'syntactic_deletion',
        'opis': [1, 2, 3]
    },
    {
        'category': 'semantic_elaboration_example',
        'opis': [4, 5]
    },
    {
        'category': 'other_category',
        'opis': [0, 1, 2]
    }
]

adjacency_only = False

ARGS = {
    'groups': groups,
    'adjacency_only': adjacency_only
}
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 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
tokenize Ran
ran on a synthesized input
Salesforce/simplification/utils_diff.py
code served (permissive licence) · get_code("92405e3ea7567dda")
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 re
import nltk

def tokenize(text):
    text = re.sub('\\s{2,}', ' ', text)
    text = text.replace('—', '-').replace('–', '-')
    cleaned_text = text.replace('.', ' .').replace(',', ' ,').replace('!', ' !').replace('?', ' ?').replace(';', ' ;').replace(':', ' :').replace('\n', ' \n ').replace("'", " '").replace('"', ' " ').replace('(', ' (').replace(')', ' )')
    cleaned_text = re.sub('\\s{2,}', ' ', cleaned_text)
    return cleaned_text.split(' ')

# Setup for the tokenize function
sample_text = "Hello, world! This is a test.  Multiple spaces here.\nNew line too."

ARGS = {
    'text': sample_text
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
nltk — 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
untokenize Ran
ran on a synthesized input
Salesforce/simplification/utils_diff.py
code served (permissive licence) · get_code("7a2205416066143e")
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.

# Setup code for untokenize function

ARGS = {
    'tokens': ['Hello', 'world', '.', 'How', 'are', 'you', '?']
}
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 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

Also present in other papers' code

Of 11 samples lifted from this paper's linked repositories, 11 carry a function identity and 0 do not. Of the 11 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 11 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-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

Text simplification research has mostly focused on sentence-level simplification, even though many desirable edits-such as adding relevant background information or reordering contentmay require document-level context. Prior work has also predominantly framed simplification as a single-step, input-to-output task, only implicitly modeling the fine-grained, span-level edits that elucidate the simplification process. To address both gaps, we introduce the SWIPE dataset, which reconstructs the document-level editing process from English Wikipedia (EW) articles to paired Simple Wikipedia (SEW) articles. In contrast to prior work, SWIPE leverages the entire revision history when pairing pages in order to better identify simplification edits. We work with Wikipedia editors to annotate 5,000 EW-SEW document pairs, labeling more than 40,000 edits with proposed 19 categories. To scale our efforts, we propose several models to automatically label edits, achieving an F-1 score of up to 70.6, indicating that this is a tractable but challenging NLU task. Finally, we categorize the edits produced by several simplification models and find that SWIPE-trained models generate more complex edits while reducing unwanted edits.

For agents

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

get_harvested_code_for_paper("2305.19204")
get_code_for_paper("2305.19204")
have("2305.19204")

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

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

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

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

Connect an agent — have() is free.