SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2309.09582 · EMNLP · 2023

FABRICATOR: An Open Source Toolkit for Generating Labeled Training Data with Teacher LLMs

Patrick Haller, Jonas Golde, Alan Akbik, Felix Hamborg, Julian Risch

arXiv · PDF · Open in the Atlas

Code that ran

17 of 19 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, 1 violated it and 1 has no contract verdict; 15 failures of our instrument; 2 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/2309.09582.json · badge: /api/ran/2309.09582.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
flairNLP/fabricator canonical (classifier label)
classifier basis: census
11 ran · 2 no recorded run
deepset-ai/Haystack canonical (classifier label)
classifier basis: census
6 ran · 0 no recorded run
FunctionStatusWhere it lives
calculate_answer_start Ran
ran; our contract draft was wrong, not the code
flairNLP/fabricator/src/fabricator/dataset_transformations/question_answering.py
code served (permissive licence) · get_code("81ab569cd8346156")
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.

from loguru import logger

# Create a valid SQuAD example dictionary
example = {
    'context': 'The quick brown fox jumps over the lazy dog',
    'answers': 'quick brown fox'
}

ARGS = {
    'example': example
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
loguru — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
convert_spans_to_token_labels Ran
ran; our contract draft was wrong, not the code
flairNLP/fabricator/src/fabricator/dataset_transformations/token_classification.py
code served (permissive licence) · get_code("a8da3033f9af176d")
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 Dataset. 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 datasets import Dataset
from loguru import logger

# Create a minimal valid dataset with the required columns
data = {
    'tokens': [
        'john is a person entity.\njohn works at acme entity.',
        'alice is a person entity.'
    ],
    'labels': [
        'john is person entity.\nacme is organization entity.',
        'alice is person entity.'
    ]
}

dataset = Dataset.from_dict(data)

# Define id2label mapping
id2label = {
    0: 'O',
    1: 'person',
    2: 'organization'
}

ARGS = {
    'dataset': dataset,
    'token_column': 'tokens',
    'label_column': 'labels',
    'id2label': id2label,
    'annotate_identical_words': False
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
datasets, loguru — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Dataset — a Dataset output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Dataset 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
create_timestamp_path Ran
ran; our contract draft was wrong, not the code
flairNLP/fabricator/src/fabricator/utils.py
code served (permissive licence) · get_code("c1f2f10c10a88040")
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 datetime
import os
import tempfile

ARGS = {
    "directory": tempfile.gettempdir()
}
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
generate_qualified_class_name Ran
ran on a synthesized input
deepset-ai/Haystack/haystack/core/serialization.py
code served (permissive licence) · get_code("164df86632d7c91b")
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 torch.nn as nn


class CustomModule(nn.Module):
    """A simple custom module for testing."""
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 2)
    
    def forward(self, x):
        return self.linear(x)


class SimpleClass:
    """A simple stand-in class."""
    pass


# Test with different class types
built_in_class = int
custom_class = CustomModule
simple_class = SimpleClass

ARGS = {
    'cls': custom_class
}
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_labels_from_dataset Ran
ran; our contract draft was wrong, not the code
flairNLP/fabricator/src/fabricator/dataset_transformations/text_classification.py
code served (permissive licence) · get_code("cddc89c4c8339cd7")
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.

from datasets import Dataset, DatasetDict, ClassLabel, Sequence

# Create a simple dataset with a ClassLabel column
dataset = Dataset.from_dict({
    "text": ["hello", "world", "foo", "bar"],
    "label": [0, 1, 0, 2]
})

# Add ClassLabel feature
from datasets.features import Features, Value
features = Features({
    "text": Value("string"),
    "label": ClassLabel(names=["negative", "neutral", "positive"])
})
dataset = dataset.cast(features)

label_column = "label"

ARGS = {
    "dataset": dataset,
    "label_column": label_column,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
datasets — 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
has_any_trigger Ran
ran, violated the contract we drafted
deepset-ai/Haystack/haystack/core/pipeline/component_checks.py
code served (permissive licence) · get_code("6fefe2cdced3efd0")
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 torch.nn as nn
from typing import Any

class MockSocket:
    """Mock socket class with senders attribute"""
    def __init__(self, num_senders=0):
        self.senders = [None] * num_senders

class _NoOutputProduced:
    """
    Marker a socket input holds when its sender ran without producing a value for that socket.
    """
    def __eq__(self, other: object) -> bool:
        return isinstance(other, _NoOutputProduced)

    def __hash__(self) -> int:
        return hash(_NoOutputProduced)

    def to_dict(self) -> dict[str, Any]:
        return {}

    @classmethod
    def from_dict(cls, data: dict[str, Any]) -> '_NoOutputProduced':
        return cls()

# Create a component dict with the required structure
component = {
    'input_sockets': {
        'socket_1': MockSocket(num_senders=1),
        'socket_2': MockSocket(num_senders=0),
    },
    'visits': 0,
}

# Create inputs dict with mixed scenarios
inputs = {
    'socket_1': [
        {
            'value': torch.tensor([1.0, 2.0, 3.0, 4.0]),
            'sender': 'component_A'
        }
    ],
    'socket_2': [
        {
            'value': _NoOutputProduced(),
            'sender': None
        }
    ]
}

ARGS = {
    'component': component,
    'inputs': inputs,
}
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
mark_deserialization_internal Ran
ran; our contract draft was wrong, not the code
deepset-ai/Haystack/haystack/core/serialization_security.py
code served (permissive licence) · get_code("f000dffd4a55b693")
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 function. 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
from typing import Callable

def sample_function():
    """A simple callable to use as test input."""
    pass

def sample_function_2(x, y):
    """Another callable for testing."""
    return x + y

class SampleCallable:
    """A callable class."""
    def __call__(self, x):
        return x * 2

# Test with different types of callables
ARGS = {
    "func": sample_function
}
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 function — a function output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a function 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
patch_log_method_to_kwargs_only Ran
ran; our contract draft was wrong, not the code
deepset-ai/Haystack/haystack/logging.py
code served (permissive licence) · get_code("61479ed8bec405d6")
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 function. 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 functools
import typing
from typing import Any

def patch_log_method_to_kwargs_only(func: typing.Callable) -> typing.Callable:
    """A decorator to make sure that a function is only called with keyword arguments."""

    @functools.wraps(func)
    def _log_only_with_kwargs(msg: str, *, _: Any=None, exc_info: Any=None, stack_info: Any=False, stacklevel: int=1, **kwargs: Any) -> typing.Callable:
        existing_extra = kwargs.pop('extra', {})
        return func(msg, exc_info=exc_info, stack_info=stack_info, stacklevel=stacklevel + 1, extra={**existing_extra, **kwargs})
    return _log_only_with_kwargs


# Create a mock logging function to pass as the decorator argument
def mock_logger(msg: str, exc_info: Any=None, stack_info: Any=False, stacklevel: int=1, extra: dict=None) -> str:
    """A simple mock logger function that accepts the expected parameters."""
    if extra is None:
        extra = {}
    return f"logged: {msg}"


ARGS = {
    "func": mock_logger
}
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 function — a function output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a function 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
patch_log_with_level_method_to_kwargs_only Ran
ran; our contract draft was wrong, not the code
deepset-ai/Haystack/haystack/logging.py
code served (permissive licence) · get_code("832a10875cdb79ca")
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 function. 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 functools
import typing
from typing import Any

def patch_log_with_level_method_to_kwargs_only(func: typing.Callable) -> typing.Callable:
    """A decorator to make sure that a function is only called with keyword arguments."""

    @functools.wraps(func)
    def _log_only_with_kwargs(level: int | str, msg: str, *, _: Any=None, exc_info: Any=None, stack_info: Any=False, stacklevel: int=1, **kwargs: Any) -> typing.Callable:
        existing_extra = kwargs.pop('extra', {})
        return func(level, msg, exc_info=exc_info, stack_info=stack_info, stacklevel=stacklevel + 1, extra={**existing_extra, **kwargs})
    return _log_only_with_kwargs


# Create a mock logging function that accepts the parameters the decorator passes
def mock_logger(level: int | str, msg: str, *, exc_info: Any=None, stack_info: Any=False, stacklevel: int=1, extra: dict=None) -> None:
    """Mock logger function that the decorator will wrap."""
    pass


ARGS = {
    "func": mock_logger
}
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 function — a function output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a function 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
patch_make_records_to_use_kwarg_string_interpolation Ran
ran; our contract draft was wrong, not the code
deepset-ai/Haystack/haystack/logging.py
code served (permissive licence) · get_code("c8cb9b84c1356fdd")
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 function. 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 functools
import typing
from typing import Any

def patch_make_records_to_use_kwarg_string_interpolation(original_make_records: typing.Callable) -> typing.Callable:
    """A decorator to ensure string interpolation is used."""

    @functools.wraps(original_make_records)
    def _wrapper(name: str, level: int | str, fn: str, lno: int, msg: str, args: Any, exc_info: Any, func: Any=None, extra: Any=None, sinfo: Any=None) -> typing.Callable:
        safe_extra = extra or {}
        try:
            interpolated_msg = msg.format(**safe_extra)
        except (KeyError, ValueError, IndexError):
            interpolated_msg = msg
        return original_make_records(name, level, fn, lno, interpolated_msg, (), exc_info, func, extra, sinfo)
    return _wrapper


def mock_make_records(name: str, level: int | str, fn: str, lno: int, msg: str, args: Any, exc_info: Any, func: Any=None, extra: Any=None, sinfo: Any=None) -> str:
    """Mock original_make_records function that just returns a formatted string."""
    return f"LogRecord({name}, {level}, {msg})"


ARGS = {
    "original_make_records": mock_make_records
}
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 function — a function output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a function 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_squad_format Ran
ran; our contract draft was wrong, not the code
flairNLP/fabricator/src/fabricator/dataset_transformations/question_answering.py
code served (permissive licence) · get_code("85f9d2e4993481da")
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 Dataset. 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 datasets import Dataset

# Create a minimal SQuAD-format dataset
data = {
    'context': [
        'The quick brown fox jumps over the lazy dog',
        'Paris is the capital of France'
    ],
    'question': [
        'What animal jumps?',
        'What is the capital of France?'
    ],
    'answers': [
        'quick brown fox',
        'Paris'
    ]
}

dataset = Dataset.from_dict(data)

ARGS = {
    'dataset': dataset,
    'add_answer_start': True
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
datasets, loguru — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Dataset — a Dataset output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Dataset 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
preprocess_squad_format Ran
ran; our contract draft was wrong, not the code
flairNLP/fabricator/src/fabricator/dataset_transformations/question_answering.py
code served (permissive licence) · get_code("e322caa231cc0084")
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 Dataset. 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 datasets import Dataset

# Create a minimal SQuAD-format dataset with nested answers
data = {
    'id': ['1', '2'],
    'title': ['Article1', 'Article2'],
    'context': ['Context text 1', 'Context text 2'],
    'question': ['What is this?', 'Who did that?'],
    'answers': [
        {'text': ['answer1'], 'answer_start': [0]},
        {'text': ['answer2'], 'answer_start': [5]}
    ]
}

dataset = Dataset.from_dict(data)

ARGS = {
    'dataset': dataset
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
datasets — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Dataset — a Dataset output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Dataset 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
random_sampler Ran
ran; our contract draft was wrong, not the code
flairNLP/fabricator/src/fabricator/samplers/samplers.py
code served (permissive licence) · get_code("1266726c77cca097")
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 Dataset. 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 random
from datasets import ClassLabel, Dataset, Sequence, Value

# Create a small valid Dataset
# The function calls len(dataset) and dataset.select(indices)
# These are standard Dataset methods, so we need a real Dataset object

data = {
    "text": ["hello world", "foo bar", "test example", "another sample", "fifth item"],
    "label": [0, 1, 0, 1, 0]
}

dataset = Dataset.from_dict(data)

# Define arguments
ARGS = {
    "dataset": dataset,
    "num_examples": 3
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
datasets — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Dataset — a Dataset output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Dataset 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
replace_class_labels Ran
ran; our contract draft was wrong, not the code
flairNLP/fabricator/src/fabricator/dataset_transformations/text_classification.py
code served (permissive licence) · get_code("7fba20d4a7dfc7a3")
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.

# Setup code for replace_class_labels function

# Test case 1: id2label with string keys, expanded_labels with string keys
id2label_str = {
    0: "LOC",
    1: "PER",
    2: "ORG",
    3: "O"
}

expanded_labels_str = {
    "LOC": "LOCATION",
    "PER": "PERSON",
    "ORG": "ORGANIZATION"
}

ARGS = {
    "id2label": id2label_str,
    "expanded_labels": expanded_labels_str
}
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 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
replace_token_labels Ran
ran; our contract draft was wrong, not the code
flairNLP/fabricator/src/fabricator/dataset_transformations/token_classification.py
code served (permissive licence) · get_code("d5e8675475cdb42a")
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.

# Construct valid arguments for replace_token_labels function

ARGS = {
    "id2label": {
        0: "O",
        1: "B-PER",
        2: "I-PER",
        3: "B-LOC",
        4: "I-LOC",
        5: "B-ORG",
        6: "I-ORG",
    },
    "expanded_labels": {
        "PER": "PERSON",
        "LOC": "LOCATION",
        "ORG": "ORGANIZATION",
    },
}
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 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
single_label_stratified_sample Ran
ran; our contract draft was wrong, not the code
flairNLP/fabricator/src/fabricator/samplers/samplers.py
code served (permissive licence) · get_code("bcd2a038c58aa493")
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 Dataset. 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 random
from datasets import Dataset
from collections import defaultdict, deque
from itertools import cycle

# Set seed for reproducibility
random.seed(42)

# Create a small dataset with multiple classes
data = {
    'text': [
        'example 1', 'example 2', 'example 3', 'example 4',
        'example 5', 'example 6', 'example 7', 'example 8',
        'example 9', 'example 10', 'example 11', 'example 12'
    ],
    'label': [0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2]
}

dataset = Dataset.from_dict(data)

ARGS = {
    'dataset': dataset,
    'label_column': 'label',
    'num_examples_per_class': 2,
    'return_unused_split': False
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
datasets — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Dataset — a Dataset output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Dataset 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
single_label_task_sampler Ran
ran; our contract draft was wrong, not the code
flairNLP/fabricator/src/fabricator/samplers/samplers.py
code served (permissive licence) · get_code("e560cf2ebbd575b2")
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 Dataset. 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 datasets import Dataset, ClassLabel, Value
import random

random.seed(0)

# Create a minimal dataset with a label column
data = {
    "text": ["hello world", "foo bar", "test example", "another sample", "final text"],
    "label": [0, 1, 0, 1, 2]
}

# Create dataset with ClassLabel feature
dataset = Dataset.from_dict(data)
dataset = dataset.cast_column("label", ClassLabel(names=["class_a", "class_b", "class_c"]))

ARGS = {
    "dataset": dataset,
    "label_column": "label",
    "num_examples": 3,
    "return_unused_split": False
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
datasets, loguru, tqdm — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Dataset — a Dataset output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Dataset 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
convert_label_ids_to_texts Not yet run
unverified (harvested, no recorded run)
flairNLP/fabricator/src/fabricator/dataset_transformations/text_classification.py
code served (permissive licence) · get_code("a5bb802ee94c5178")
How it ran

no invocation recorded.

convert_token_labels_to_spans Not yet run
unverified (harvested, no recorded run)
flairNLP/fabricator/src/fabricator/dataset_transformations/token_classification.py
code served (permissive licence) · get_code("b08e9d3cfc7a721d")
How it ran

no invocation recorded.

Also present in other papers' code

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

Most NLP tasks are modeled as supervised learning and thus require labeled training data to train effective models. However, manually producing such data at sufficient quality and quantity is known to be costly and timeintensive. Current research addresses this bottleneck by exploring a novel paradigm called zero-shot learning via dataset generation. Here, a powerful LLM is prompted with a task description to generate labeled data that can be used to train a downstream NLP model. For instance, an LLM might be prompted to "generate 500 movie reviews with positive overall sentiment, and another 500 with negative sentiment." The generated data could then be used to train a binary sentiment classifier, effectively leveraging an LLM as a teacher to a smaller student model. With this demo, we introduce FABRICATOR, an open-source Python toolkit for dataset generation. FABRICATOR implements common dataset generation workflows, supports a wide range of downstream NLP tasks (such as text classification, question answering, and entity recognition), and is integrated with well-known libraries to facilitate quick experimentation. With FABRICATOR, we aim to support researchers in conducting reproducible dataset generation experiments using LLMs and help practitioners apply this approach to train models for downstream tasks.

For agents

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

get_harvested_code_for_paper("2309.09582")
get_code_for_paper("2309.09582")
have("2309.09582")

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

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

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

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

Connect an agent — have() is free.