SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1911.09709 · 2019

Automatically Neutralizing Subjective Bias in Text

arXiv · PDF · Open in the Atlas

Code that ran

12 of 13 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 12 have no contract verdict; 0 failures of our instrument; 1 no recorded run), measured 2026-11-23; 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/1911.09709.json · badge: /api/ran/1911.09709.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
rpryzant/neutralizing-bias canonical (classifier label)
classifier basis: census
12 ran · 1 no recorded run
FunctionStatusWhere it lives
attempt_load_model Ran
ran on a synthesized input
rpryzant/neutralizing-bias/baselines/models.py
code served (permissive licence) · get_code("dc7c732b212737d8")
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 os
import tempfile
import torch
import torch.nn as nn

torch.manual_seed(0)

# Create a minimal model that has load_state_dict method
class SimpleModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 3)
    
    def forward(self, x):
        return self.linear(x)

# Create a temporary checkpoint file
temp_dir = tempfile.mkdtemp()
model = SimpleModel()
checkpoint_path = os.path.join(temp_dir, "model.10.ckpt")
torch.save(model.state_dict(), checkpoint_path)

# Create the model instance to load into
model_to_load = SimpleModel()

ARGS = {
    'model': model_to_load,
    'checkpoint_dir': None,
    'checkpoint_path': checkpoint_path,
}
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 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
bleu Ran
ran on a synthesized input
rpryzant/neutralizing-bias/baselines/evaluation.py
code served (permissive licence) · get_code("434a3b59116b43ca")
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 float, 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 math

def bleu(stats):
    """Compute BLEU given n-gram statistics."""
    if len(list(filter(lambda x: x == 0, stats))) > 0:
        return 0
    c, r = stats[:2]
    log_bleu_prec = sum([math.log(float(x) / y) for x, y in zip(stats[2::2], stats[3::2])]) / 4.0
    return math.exp(min([0, 1 - float(r) / c]) + log_bleu_prec)


# stats should be a list/tuple with at least 10 elements (c, r, and 4 pairs of n-gram counts)
# Format: [c, r, count1, total1, count2, total2, count3, total3, count4, total4]
# where c is candidate length, r is reference length
# and count/total pairs are for 1-gram, 2-gram, 3-gram, 4-gram statistics

ARGS = {
    "stats": [100, 95, 80, 100, 60, 100, 40, 100, 25, 100]
}
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 float, 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
bleu_stats Ran
ran on a synthesized input
rpryzant/neutralizing-bias/baselines/evaluation.py
code served (permissive licence) · get_code("afec3c5fa3707d5d")
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 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.

from collections import Counter

# Analyze the function to understand what it expects:
# - hypothesis: a sequence (list) of tokens
# - reference: a sequence (list) of tokens
# - word_list: optional list/set of words for filtering

# The function:
# 1. Calls len() on hypothesis and reference
# 2. Iterates through n-grams (1 to 4)
# 3. Creates tuples from slices of hypothesis and reference
# 4. Uses Counter to count n-grams
# 5. Checks if word_list is None or uses set operations with it

# Build minimal valid arguments
hypothesis = ["the", "cat", "sat", "on", "the", "mat"]
reference = ["a", "cat", "is", "sitting", "on", "the", "mat"]
word_list = ["cat", "sat", "on", "the", "mat", "a", "is", "sitting"]

ARGS = {
    "hypothesis": hypothesis,
    "reference": reference,
    "word_list": word_list
}
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 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
build_vocab_maps Ran
ran on a synthesized input
rpryzant/neutralizing-bias/baselines/data.py
code served (permissive licence) · get_code("75a5c5c12355b9eb")
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 os
import tempfile

# Create a temporary vocab file with the required format
temp_dir = tempfile.mkdtemp()
vocab_file = os.path.join(temp_dir, 'vocab.txt')

with open(vocab_file, 'w') as f:
    f.write('<unk>\n')
    f.write('<pad>\n')
    f.write('<s>\n')
    f.write('</s>\n')
    f.write('hello\n')
    f.write('world\n')
    f.write('test\n')
    f.write('vocab\n')

ARGS = {
    'vocab_file': vocab_file
}
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
config_key_string Ran
ran on a synthesized input
rpryzant/neutralizing-bias/baselines/utils.py
code served (permissive licence) · get_code("bbb7a4c679f05d33")
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:
# config_key_string takes a 'config' parameter
# It calls nested_iter(config) which iterates over config.items()
# So config must be a dict (or dict-like object)
# The function sorts items and recursively handles nested dicts
# It builds keys by concatenating with '|' separator for nested keys
# It returns a comma-separated string of all keys (flattened)

# Create a sample config dict with nested structure
config = {
    'learning_rate': 0.001,
    'batch_size': 32,
    'model': {
        'hidden_dim': 64,
        'num_layers': 2,
        'dropout': {
            'rate': 0.1,
            'enabled': True
        }
    },
    'optimizer': {
        'type': 'adam',
        'weight_decay': 1e-5
    }
}

ARGS = {
    'config': config
}
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
config_val_string Ran
ran on a synthesized input
rpryzant/neutralizing-bias/baselines/utils.py
code served (permissive licence) · get_code("2cec995af790c6a4")
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:
# - config_val_string takes a single parameter: config
# - The function expects config to be a dict
# - It calls nested_iter(config) which iterates through sorted items
# - nested_iter handles nested dicts by recursively flattening them
# - The values (non-dict items) are converted to strings and joined

# Create a test config dict with nested structure
config = {
    "learning_rate": 0.001,
    "batch_size": 32,
    "model": {
        "hidden_dim": 128,
        "num_layers": 3,
        "dropout": 0.5
    },
    "optimizer": {
        "name": "adam",
        "beta1": 0.9
    },
    "epochs": 10
}

ARGS = {
    "config": config
}
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
detokenize Ran
ran on a synthesized input
rpryzant/neutralizing-bias/deprecated/eval/score_results.py
code served (permissive licence) · get_code("4b9b755d273ab7e3")
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

def detokenize(s):
    out = []
    for w in s.split():
        if w.startswith('##') and len(out) > 0:
            out[-1] += w[2:]
        else:
            out.append(w)
    return ' '.join(out)

# The function takes a single parameter 's' which is a string
# It expects a string with space-separated tokens, some of which may start with '##'
# The '##' prefix indicates subword tokens that should be merged with the previous token

ARGS = {
    's': 'hello ##world this ##is ##a test'
}
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
extract_attributes Ran
ran on a synthesized input
rpryzant/neutralizing-bias/baselines/data.py
code served (permissive licence) · get_code("a2d119438207aca4")
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)

# Analyze the function:
# - line: iterable of tokens (strings), checked against attribute_vocab
# - attribute_vocab: container that supports 'in' operator (set, dict, list)

# Create a small attribute vocabulary
attribute_vocab = {'adjective', 'noun', 'verb', 'adverb'}

# Create a line (list of tokens) with mix of attribute and non-attribute tokens
line = ['the', 'adjective', 'cat', 'verb', 'quickly', 'adverb', 'runs']

ARGS = {
    'line': line,
    'attribute_vocab': attribute_vocab
}
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
find_matches Ran
ran on a synthesized input
rpryzant/neutralizing-bias/harvest/gen_data_from_crawl.py
code served (permissive licence) · get_code("0e5dcca6ddd42a20")
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 generator. 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.

from collections import Counter
import math

def find_matches(a_list, b_list, delta=3):

    def BLEU(hyp, ref):
        stats = []
        stats.append(len(hyp))
        stats.append(len(ref))
        for n in range(1, 5):
            s_ngrams = Counter([tuple(hyp[i:i + n]) for i in range(len(hyp) + 1 - n)])
            r_ngrams = Counter([tuple(ref[i:i + n]) for i in range(len(ref) + 1 - n)])
            stats.append(max([sum((s_ngrams & r_ngrams).values()), 0]))
            stats.append(max([len(hyp) + 1 - n, 0]))
        if len(list(filter(lambda x: x == 0, stats))) > 0:
            return 0
        c, r = stats[:2]
        log_bleu_prec = sum([math.log(float(x) / y) for x, y in zip(stats[2::2], stats[3::2])]) / 4.0
        bleu = math.exp(min([0, 1 - float(r) / c]) + log_bleu_prec)
        return 100 * bleu
    for i in range(len(a_list)):
        neighborhood_bleus = [(BLEU(a_list[i].split(), b_list[j].split()), j) for j in range(max(i - delta, 0), min(i + delta, len(b_list)))]
        if not neighborhood_bleus:
            continue
        max_bleu, match_idx = max(neighborhood_bleus)
        yield (i, match_idx, max_bleu)


# Setup code
a_list = [
    "the quick brown fox",
    "jumps over the lazy dog",
    "a sample sentence here",
    "another test example text",
    "final line of text"
]

b_list = [
    "the fast brown fox",
    "jumps over a lazy dog",
    "a sample sentence there",
    "another test case text",
    "final row of content"
]

delta = 2

ARGS = {
    "a_list": a_list,
    "b_list": b_list,
    "delta": delta
}
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 generator — a generator output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a generator 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_latest_ckpt Ran
ran on a synthesized input
rpryzant/neutralizing-bias/baselines/models.py
code served (permissive licence) · get_code("141219cec6bf7fb1")
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 tempfile
import os

# Create a temporary directory with some checkpoint files
temp_dir = tempfile.mkdtemp()

# Create fake checkpoint files with the naming pattern expected by the function
# The function expects filenames like "something.EPOCH.ckpt"
checkpoint_files = [
    os.path.join(temp_dir, "model.0.ckpt"),
    os.path.join(temp_dir, "model.5.ckpt"),
    os.path.join(temp_dir, "model.10.ckpt"),
]

for ckpt_file in checkpoint_files:
    with open(ckpt_file, 'w') as f:
        f.write("fake checkpoint content")

ARGS = {
    "ckpt_dir": temp_dir
}
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
rm_refs Ran
ran on a synthesized input
rpryzant/neutralizing-bias/harvest/gen_data_from_crawl.py
code served (permissive licence) · get_code("c4ae1ec929d0f336")
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 re

def rm_refs(x):
    REF_RE = '<ref([-\\w=" <>]+)?>.*?<([ ]+)?\\/([ ]+)?ref>'
    x = re.sub(REF_RE, ' ', x)
    if '</ref>' in x:
        x = re.sub(REF_RE, ' ', '<ref>' + x)
    if '<ref' in x:
        x = re.sub(REF_RE, ' ', x + '</ref>')
    return x

ARGS = {
    'x': 'This is some text with <ref name="source1">a citation</ref> and <ref>another one</ref> in it.'
}
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
wiki_text_clean Ran
ran on a synthesized input
rpryzant/neutralizing-bias/harvest/crawl_revision_text.py
code served (permissive licence) · get_code("30d095bc0d01d94d")
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 string

def wiki_text_clean(text):
    text = ''.join([x for x in text if x in string.printable])
    text = text.replace('\n', ' ').replace('\t', ' ')
    return text

ARGS = {
    'text': 'Hello\nWorld\t2024\x00\x01valid text with\nnewlines\tand\ttabs'
}
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
get_precisions_recalls_DEPRECIATED Not yet run
unverified (harvested, no recorded run)
rpryzant/neutralizing-bias/baselines/evaluation.py
code served (permissive licence) · get_code("45b1f5e549982076")
How it ran

no invocation recorded.

Also present in other papers' code

Of 13 samples lifted from this paper's linked repositories, 13 carry a function identity and 0 do not. Of the 13 distinct functions with an identity, 4 are also present in other papers whose code we hold (4 with at least one paper dated earlier, 0 the same month, 0 later) and 9 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
attempt_load_model 1 other paper
1 dated earlier
1804.06437 (2018-04)
Delete, Retrieve, Generate: A Simple Approach to Sentiment and Style Transfer
bleu 1 other paper
1 dated earlier
1804.06437 (2018-04)
Delete, Retrieve, Generate: A Simple Approach to Sentiment and Style Transfer
build_vocab_maps 1 other paper
1 dated earlier
1804.06437 (2018-04)
Delete, Retrieve, Generate: A Simple Approach to Sentiment and Style Transfer
get_latest_ckpt 1 other paper
1 dated earlier
1804.06437 (2018-04)
Delete, Retrieve, Generate: A Simple Approach to Sentiment and Style Transfer

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

Repositories linked to this paper

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

Abstract

Texts like news, encyclopedias, and some social media strive for objectivity. Yet bias in the form of inappropriate subjectivity - introducing attitudes via framing, presupposing truth, and casting doubt - remains ubiquitous. This kind of bias erodes our collective trust and fuels social conflict. To address this issue, we introduce a novel testbed for natural language generation: automatically bringing inappropriately subjective text into a neutral point of view ("neutralizing" biased text). We also offer the first parallel corpus of biased language. The corpus contains 180,000 sentence pairs and originates from Wikipedia edits that removed various framings, presuppositions, and attitudes from biased sentences. Last, we propose two strong encoder-decoder baselines for the task. A straightforward yet opaque CONCURRENT system uses a BERT encoder to identify subjective words as part of the generation process. An interpretable and controllable MODULAR algorithm separates these steps, using (1) a BERT-based classifier to identify problematic words and (2) a novel join embedding through which the classifier can edit the hidden states of the encoder. Large-scale human evaluation across four domains (encyclopedias, news headlines, books, and political speeches) suggests that these algorithms are a first step towards the automatic identification and reduction of bias.

For agents

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

get_harvested_code_for_paper("1911.09709")
get_code_for_paper("1911.09709")
have("1911.09709")

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

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

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

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

Connect an agent — have() is free.