SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2024.findings-acl.307 · ACL Findings · 2024

Plausible Extractive Rationalization through Semi-Supervised Entailment Signal

Erik Cambria, Yeo Jie, Ranjan Satapathy

Open in the Atlas

Code that ran

13 of 15 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 10 have no contract verdict; 3 failures of our instrument; 2 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/2024.findings-acl.307.json · badge: /api/ran/2024.findings-acl.307.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
wj210/NLI_ETP canonical (classifier label)
classifier basis: census
13 ran · 2 no recorded run
FunctionStatusWhere it lives
MLP_factory Ran
ran on a synthesized input
wj210/NLI_ETP/model/model_utils.py
code served (permissive licence) · get_code("f466dc2c7d966d7b")
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 Sequential. 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

torch.manual_seed(0)

ARGS = {
    "layer_sizes": [
        (64, 2),   # 2 layers of size 64
        (32, 2),   # 2 layers of size 32
        (16, 1),   # 1 layer of size 16
    ],
    "dropout": 0.1,
    "layernorm": True,
}
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 Sequential — a Sequential output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Sequential output the recorded ndim 1 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
annotations_from_jsonl Ran
ran; our contract draft was wrong, not the code
wj210/NLI_ETP/preprocess/eraser_utils.py
code served (permissive licence) · get_code("2843042d2c0e6f50")
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 json
import tempfile
import os
from dataclasses import dataclass
from typing import Set, Tuple, Union, FrozenSet

@dataclass(eq=True, frozen=True)
class Evidence:
    text: Union[str, Tuple[int], Tuple[str]]
    docid: str
    start_token: int = -1
    end_token: int = -1
    start_sentence: int = -1
    end_sentence: int = -1

@dataclass(eq=True, frozen=True)
class Annotation:
    annotation_id: str
    query: Union[str, Tuple[int]]
    evidences: Union[Set[Tuple[Evidence]], FrozenSet[Tuple[Evidence]]]
    classification: str
    query_type: str = None
    docids: Set[str] = None

# Create a temporary JSONL file with valid data
temp_fd, temp_path = tempfile.mkstemp(suffix='.jsonl')
os.close(temp_fd)

# Build sample evidence groups
ev1 = Evidence(
    text="The quick brown fox",
    docid="doc1",
    start_token=0,
    end_token=4,
    start_sentence=0,
    end_sentence=1
)

ev2 = Evidence(
    text="jumps over the lazy dog",
    docid="doc2",
    start_token=0,
    end_token=5,
    start_sentence=0,
    end_sentence=1
)

# Create sample annotation records in JSONL format
annotations_data = [
    {
        "annotation_id": "ann_001",
        "query": "What does the fox do?",
        "evidences": [
            [
                {
                    "text": "The quick brown fox",
                    "docid": "doc1",
                    "start_token": 0,
                    "end_token": 4,
                    "start_sentence": 0,
                    "end_sentence": 1
                }
            ]
        ],
        "classification": "SUPPORTS",
        "query_type": "factual",
        "docids": ["doc1"]
    },
    {
        "annotation_id": "ann_002",
        "query": "What is the animal?",
        "evidences": [
            [
                {
                    "text": "jumps over the lazy dog",
                    "docid": "doc2",
                    "start_token": 0,
                    "end_token": 5,
                    "start_sentence": 0,
                    "end_sentence": 1
                }
            ]
        ],
        "classification": "REFUTES",
        "query_type": "factual",
        "docids": ["doc2"]
    }
]

# Write to temp file
with open(temp_path, 'w') as f:
    for record in annotations_data:
        f.write(json.dumps(record) + '\n')

ARGS = {
    'fp': temp_path
}
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
build_optimizer Ran
ran on a synthesized input
wj210/NLI_ETP/train_nli.py
code served (permissive licence) · get_code("578e30ec676dea90")
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 AdamW. 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

torch.manual_seed(0)

# Create a minimal model with parameters including bias and LayerNorm
class MinimalModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear1 = nn.Linear(4, 8)
        self.layer_norm = nn.LayerNorm(8)
        self.linear2 = nn.Linear(8, 3)
    
    def forward(self, x):
        x = self.linear1(x)
        x = self.layer_norm(x)
        x = self.linear2(x)
        return x

# Create a minimal predictor model
class MinimalPredictor(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(3, 2)
    
    def forward(self, x):
        return self.linear(x)

# Instantiate models
model = MinimalModel()
predictor = MinimalPredictor()

ARGS = {
    'model': model,
    'predictor': predictor,
    'optimizer_name': 'adam',
    'learning_rate': 1e-05
}
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 AdamW — a AdamW output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a AdamW 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
check_esnli Ran
ran on a synthesized input
wj210/NLI_ETP/preprocess/get_nli_data.py
code served (permissive licence) · get_code("3efcf56368e4db30")
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 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 torch

def check_esnli(dataline):
    all_docids = []
    for ee in dataline['evidences']:
        for e in ee:
            all_docids.append(e['docid'])
    all_docids = list(set(all_docids))
    doc_labels = [d.rsplit('_', 1)[-1] for d in all_docids]
    if 'premise' in doc_labels and 'hypothesis' in doc_labels:
        return True
    else:
        return False


ARGS = {
    'dataline': {
        'evidences': [
            [
                {'docid': 'doc1_premise'},
                {'docid': 'doc2_hypothesis'}
            ],
            [
                {'docid': 'doc3_premise'}
            ]
        ]
    }
}
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 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
compute_iou Ran
ran on a synthesized input
wj210/NLI_ETP/model/utils.py
code served (permissive licence) · get_code("99b774c8c7fcfb6a")
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 torch

torch.manual_seed(0)

ARGS = {
    "span1": (5, 15),
    "span2": (10, 20),
}
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 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
compute_iou_f1 Ran
ran on a synthesized input
wj210/NLI_ETP/model/utils.py
code served (permissive licence) · get_code("8f03d00cbb55575a")
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 numpy as np

# Create small test arrays for y_true and y_pred
# These should be 1D arrays of 0s and 1s representing spans
y_true = np.array([0, 1, 1, 0, 1, 1, 1, 0, 0])
y_pred = np.array([0, 1, 1, 1, 0, 1, 1, 0, 0])

threshold = 0.5

ARGS = {
    "y_true": y_true,
    "y_pred": y_pred,
    "threshold": threshold,
}
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 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
contains_unicode_in_range Ran
ran on a synthesized input
wj210/NLI_ETP/preprocess/get_nli_data.py
code served (permissive licence) · get_code("be6f79cf0cfcac61")
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 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 torch
import numpy as np

torch.manual_seed(0)

# Analyze the function:
# - text: a string or iterable of characters
# - start: an integer (lower bound of unicode range)
# - end: an integer (upper bound of unicode range)
# The function iterates through characters in text and checks if ord(char) falls within [start, end]

ARGS = {
    "text": "Hello World! 你好",  # Mixed ASCII and Unicode characters
    "start": 65,                  # 'A' in ASCII
    "end": 122                    # 'z' in ASCII
}
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 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
contains_unicode_in_range Ran
ran on a synthesized input
wj210/NLI_ETP/preprocess/preprocess_eraser.py
code served (permissive licence) · get_code("8abbbad2fd2b2b77")
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 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 torch

torch.manual_seed(0)

# The function iterates over 'sentence' as an iterable of texts,
# then iterates over each text as an iterable of characters.
# It checks if ord(char) falls within [start, end].
# So sentence should be a list of strings.

sentence = ["hello", "world"]
start = 65
end = 122

ARGS = {
    "sentence": sentence,
    "start": start,
    "end": end
}
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 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
get_filename Ran
ran on a synthesized input
wj210/NLI_ETP/get_seed_results.py
code served (permissive licence) · get_code("8cde21b9d750f398")
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 torch

us_pct = 10
data_pct = 10
trained = False

def get_filename(filename, file_type):
    if file_type == 'no_plaus':
        filename += '_no_plaus_0.0.txt'
        write_name = 'Full Context'
    elif file_type == 'supervised':
        if data_pct < 100:
            filename += '_S_10_untrained_1.0.txt'
        else:
            filename += '_S_trained_1.0.txt'
        write_name = 'Supervised (GOLD)'
    elif file_type == 'hard':
        if not trained:
            filename += f'-sm_{us_pct}_mo_untrained_1.0.txt'
        else:
            filename += f'-sm_{us_pct}_mo_trained_1.0.txt'
        write_name = 'Hard '
    elif file_type == 'hard_align':
        filename += f'-sm_{us_pct}_mo_trained_1.0_align.txt'
        write_name = 'Hard with align'
    elif file_type == 'soft':
        filename += f'-sm_{us_pct}_soft_trained_1.0.txt'
        write_name = 'Soft '
    elif file_type == 'soft_align':
        filename += f'-sm_{us_pct}_soft_trained_1.0_align.txt'
        write_name = 'Soft with align'
    return (filename, write_name)

ARGS = {
    'filename': 'test_model',
    'file_type': 'no_plaus'
}
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
get_spans Ran
ran on a synthesized input
wj210/NLI_ETP/model/utils.py
code served (permissive licence) · get_code("768c23d679512456")
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
from typing import List, Tuple

# Create a simple numpy array with 1s and 0s to test the get_spans function
arr = np.array([0, 1, 1, 0, 1, 0, 0, 1, 1, 1, 0])

ARGS = {
    "arr": arr
}
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
load_datasets Ran
ran; our contract draft was wrong, not the code
wj210/NLI_ETP/preprocess/eraser_utils.py
code served (permissive licence) · get_code("e1878c4a3bf022ae")
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 json
import os
import tempfile
from dataclasses import dataclass
from typing import Set, Tuple, Union, FrozenSet

@dataclass(eq=True, frozen=True)
class Evidence:
    text: Union[str, Tuple[int], Tuple[str]]
    docid: str
    start_token: int = -1
    end_token: int = -1
    start_sentence: int = -1
    end_sentence: int = -1

@dataclass(eq=True, frozen=True)
class Annotation:
    annotation_id: str
    query: Union[str, Tuple[int]]
    evidences: Union[Set[Tuple[Evidence]], FrozenSet[Tuple[Evidence]]]
    classification: str
    query_type: str = None
    docids: Set[str] = None

# Create a temporary directory with train.jsonl, val.jsonl, test.jsonl
temp_dir = tempfile.mkdtemp()

# Create sample Evidence objects
evidence1 = Evidence(
    text="This is evidence text",
    docid="doc1",
    start_token=0,
    end_token=5,
    start_sentence=0,
    end_sentence=1
)

evidence2 = Evidence(
    text="Another evidence",
    docid="doc2",
    start_token=1,
    end_token=3,
    start_sentence=0,
    end_sentence=1
)

# Create sample Annotation objects
annotation1 = {
    "annotation_id": "ann1",
    "query": "What is this?",
    "evidences": [[
        {
            "text": "Evidence text 1",
            "docid": "doc1",
            "start_token": 0,
            "end_token": 5,
            "start_sentence": 0,
            "end_sentence": 1
        }
    ]],
    "classification": "SUPPORTS",
    "query_type": "factoid",
    "docids": ["doc1"]
}

annotation2 = {
    "annotation_id": "ann2",
    "query": "Why?",
    "evidences": [[
        {
            "text": "Evidence text 2",
            "docid": "doc2",
            "start_token": 1,
            "end_token": 3,
            "start_sentence": 0,
            "end_sentence": 1
        }
    ]],
    "classification": "REFUTES",
    "query_type": "factoid",
    "docids": ["doc2"]
}

# Write train.jsonl
with open(os.path.join(temp_dir, 'train.jsonl'), 'w') as f:
    f.write(json.dumps(annotation1) + '\n')
    f.write(json.dumps(annotation2) + '\n')

# Write val.jsonl
with open(os.path.join(temp_dir, 'val.jsonl'), 'w') as f:
    f.write(json.dumps(annotation1) + '\n')

# Write test.jsonl
with open(os.path.join(temp_dir, 'test.jsonl'), 'w') as f:
    f.write(json.dumps(annotation2) + '\n')

ARGS = {
    'data_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 — 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
load_jsonl Ran
ran; our contract draft was wrong, not the code
wj210/NLI_ETP/preprocess/eraser_utils.py
code served (permissive licence) · get_code("49077456b34beefd")
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 json
import tempfile
import os

# Create a temporary JSONL file with test data
temp_dir = tempfile.mkdtemp()
temp_file = os.path.join(temp_dir, "test.jsonl")

# Write test data to the file
test_data = [
    {"id": 1, "text": "hello world"},
    {"id": 2, "text": "foo bar"},
    {"id": 3, "name": "test", "value": 42}
]

with open(temp_file, 'w') as f:
    for item in test_data:
        json.dump(item, f)
        f.write('\n')

# Define ARGS
ARGS = {
    "fp": temp_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 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
word_to_token_mask Ran
ran on a synthesized input
wj210/NLI_ETP/preprocess/get_nli_data.py
code served (permissive licence) · get_code("702d00a5a0be5e3a")
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.

import torch
from transformers import AutoTokenizer

# Create a minimal stand-in tokenizer that mimics HuggingFace tokenizer behavior
class MinimalTokenizer:
    def __call__(self, text, return_offsets_mapping=False, add_special_tokens=False):
        # Simple tokenization: split by spaces
        tokens = text.split()
        input_ids = list(range(len(tokens)))
        
        # Create offset_mapping: character positions for each token
        offset_mapping = []
        char_pos = 0
        for token in tokens:
            start = text.find(token, char_pos)
            end = start + len(token)
            offset_mapping.append((start, end))
            char_pos = end
        
        class TokenizerOutput:
            def __init__(self, input_ids, offset_mapping):
                self.input_ids = input_ids
                self.offset_mapping = offset_mapping
        
        return TokenizerOutput(input_ids, offset_mapping)

# Construct arguments
text = "hello world test"
tokenizer = MinimalTokenizer()

# Create a mask with same length as number of words
mask = [1, 0, 1]  # 3 words in text

ARGS = {
    "tokenizer": tokenizer,
    "text": text,
    "mask": mask,
    "reverse": False
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, transformers — 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
get_loss Not yet run
unverified (harvested, no recorded run)
wj210/NLI_ETP/train_nli.py
code served (permissive licence) · get_code("fe654cb091c35f91")
How it ran

no invocation recorded.

load_data_for_training Not yet run
unverified (harvested, no recorded run)
wj210/NLI_ETP/train_nli.py
code served (permissive licence) · get_code("75e865cd55e5dbc0")
How it ran

no invocation recorded.

Also present in other papers' code

Of 15 samples lifted from this paper's linked repositories, 15 carry a function identity and 0 do not. Of the 15 distinct functions with an identity, 3 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 0 the same month, 0 later) and 12 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
annotations_from_jsonl 3 other papers
3 dated earlier
1911.03429 (2019-11)
ERASER: A Benchmark to Evaluate Rationalized NLP Models
2005.00115 (2020-05)
Learning to Faithfully Rationalize by Construction
2310.16316 (2023-10)
Sum-of-Parts: Self-Attributing Neural Networks with End-to-End Learning of Feature Groups
load_datasets 3 other papers
3 dated earlier
1911.03429 (2019-11)
ERASER: A Benchmark to Evaluate Rationalized NLP Models
2005.00115 (2020-05)
Learning to Faithfully Rationalize by Construction
2310.16316 (2023-10)
Sum-of-Parts: Self-Attributing Neural Networks with End-to-End Learning of Feature Groups
load_jsonl 3 other papers
3 dated earlier
1911.03429 (2019-11)
ERASER: A Benchmark to Evaluate Rationalized NLP Models
2005.00115 (2020-05)
Learning to Faithfully Rationalize by Construction
2310.16316 (2023-10)
Sum-of-Parts: Self-Attributing Neural Networks with End-to-End Learning of Feature Groups

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

The increasing use of complex and opaque black box models requires the adoption of interpretable measures, one such option is extractive rationalizing models, which serve as a more interpretable alternative. These models, also known as Explain-Then-Predict models, employ an explainer model to extract rationales and subsequently condition the predictor with the extracted information. Their primary objective is to provide precise and faithful explanations, represented by the extracted rationales. In this paper, we take a semi-supervised approach to optimize for the plausibility of extracted rationales. We adopt a pre-trained natural language inference (NLI) model and further fine-tune it on a small set of supervised rationales (10%). The NLI predictor is leveraged as a source of supervisory signals to the explainer via entailment alignment. We show that, by enforcing the alignment agreement between the explanation and answer in a question-answering task, the performance can be improved without access to ground truth labels. We evaluate our approach on the ERASER dataset and show that our approach achieves comparable results with supervised extractive models and outperforms unsupervised approaches by > 100%. Code available at https://github.com/wj210/NLI_ETP.

For agents

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

get_harvested_code_for_paper("2024.findings-acl.307")
get_code_for_paper("2024.findings-acl.307")
have("2024.findings-acl.307")

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

curl https://syntology.ai/api/ran/2024.findings-acl.307.json

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

[![Syntology run record](https://syntology.ai/api/ran/2024.findings-acl.307.svg)](https://syntology.ai/paper/2024.findings-acl.307)

Connect an agent — have() is free.