SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1912.09582 · 2019

BERTje: A Dutch BERT Model

arXiv · PDF · Open in the Atlas

Code that ran

4 of 5 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 2 have no contract verdict; 2 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/1912.09582.json · badge: /api/ran/1912.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
wietsedv/bertje canonical (classifier label)
classifier basis: classifier_2025
2 ran · 0 no recorded run
floleuerer/fastai_ulmfit community (classifier label)
classifier basis not recorded on the link
2 ran · 1 no recorded run
FunctionStatusWhere it lives
load_data Ran
ran; our contract draft was wrong, not the code
wietsedv/bertje/finetuning/v1/run_benchmark.py
code served (permissive licence) · get_code("2b4139171701786a")
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 os
import torch
import tempfile
from torch.utils.data import TensorDataset, DataLoader, RandomSampler, SequentialSampler

torch.manual_seed(0)

# Create a temporary directory for test data
temp_dir = tempfile.mkdtemp()
input_path = temp_dir

# Create a simple test file with NER data
test_filename = "test_data.txt"
test_file_path = os.path.join(input_path, test_filename)

with open(test_file_path, 'w') as f:
    f.write("The\tO\n")
    f.write("cat\tB-ANIMAL\n")
    f.write("sat\tO\n")
    f.write("\n")
    f.write("John\tB-PERSON\n")
    f.write("ran\tO\n")

# Create a simple tokenizer stand-in
class SimpleTokenizer:
    def __init__(self, pad_token_id=0):
        self.pad_token_id = pad_token_id
    
    def encode(self, token):
        # Simple encoding: return a list of token ids based on token length
        # For "The" -> [1, 2], "cat" -> [3, 4, 5], etc.
        return [hash(token) % 100 + 1] * min(len(token), 2)

tokenizer = SimpleTokenizer(pad_token_id=0)

# Set up parameters
input_path_arg = input_path
filename_arg = test_filename
tokenizer_arg = tokenizer
label_map_arg = None
cache_dir_arg = None
max_seq_length_arg = 512
allow_clipping_arg = True

ARGS = {
    "input_path": input_path_arg,
    "filename": filename_arg,
    "tokenizer": tokenizer_arg,
    "label_map": label_map_arg,
    "cache_dir": cache_dir_arg,
    "max_seq_length": max_seq_length_arg,
    "allow_clipping": allow_clipping_arg,
}
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 — 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
read_examples Ran
ran; our contract draft was wrong, not the code
wietsedv/bertje/finetuning/v1/run_benchmark.py
code served (permissive licence) · get_code("5328605f9e05de05")
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 tempfile
import os

# Create a temporary file with sample data in the expected format
temp_file = tempfile.NamedTemporaryFile(mode='w', delete=False, suffix='.txt')
temp_file.write("word1\tLABEL_A\n")
temp_file.write("word2\tLABEL_B\n")
temp_file.write("\n")
temp_file.write("word3\tLABEL_A\n")
temp_file.write("word4\tLABEL_C\n")
temp_file.close()

ARGS = {
    "path": temp_file.name,
    "add_labels": True,
}
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
sample_docs Ran
ran on a synthesized input
floleuerer/fastai_ulmfit/we/app/wikiutils.py
code served (permissive licence) · get_code("917e36be570d0c2f")
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 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 tempfile
import os

# Create a temporary directory structure for testing
temp_dir = tempfile.mkdtemp()
path_docs = os.path.join(temp_dir, "docs")
path_lm = os.path.join(temp_dir, "lm")
os.makedirs(path_docs, exist_ok=True)
os.makedirs(path_lm, exist_ok=True)

# Create some sample text files in path_docs
sample_texts = [
    "This is a sample document with enough words to pass the minimum length check.",
    "Another document here with several words in it for testing purposes.",
    "Short doc",  # This one is too short
    "Yet another longer document that contains multiple words and sentences for our testing scenario.",
    "Final document with enough content to satisfy the minimum document length requirement.",
]

for idx, text in enumerate(sample_texts):
    filepath = os.path.join(path_docs, f"doc_{idx}.txt")
    with open(filepath, 'w') as f:
        f.write(text)

# Define the arguments
ARGS = {
    "path_docs": path_docs,
    "path_lm": path_lm,
    "min_doc_length": 50,
    "number_docs": 3
}
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 int — 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
split_wiki Ran
ran on a synthesized input
floleuerer/fastai_ulmfit/we/app/wikiutils.py
code served (permissive licence) · get_code("f74e6ef2f8b45730")
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 PosixPath. 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 tempfile
from pathlib import Path

# Create temporary directories for the function
temp_dir = tempfile.TemporaryDirectory()
path_extract = Path(temp_dir.name) / 'extract'
path_docs = Path(temp_dir.name) / 'docs'

# Create the source directory structure
path_extract.mkdir(exist_ok=True, parents=True)
(path_extract / 'AA').mkdir(exist_ok=True, parents=True)

# Create a sample wiki_00 file with valid XML-like content
wiki_00_path = path_extract / 'AA' / 'wiki_00'
with open(wiki_00_path, 'w') as f:
    f.write('<doc id="1" url="?curid=123" title="Example_Article">\n')
    f.write('This is sample content for the wiki article.\n')
    f.write('It contains multiple lines.\n')
    f.write('</doc>\n')
    f.write('<doc id="2" url="?curid=456" title="Another_Article">\n')
    f.write('More content here.\n')
    f.write('</doc>\n')

lang = 'en'

ARGS = {
    'path_extract': path_extract,
    'path_docs': path_docs,
    'lang': lang
}
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 PosixPath — a PosixPath output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a PosixPath 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
custom_doc_links Not yet run
unverified (harvested, no recorded run)
floleuerer/fastai_ulmfit/fastai_ulmfit/_nbdev.py
code served (permissive licence) · get_code("c00f1d9594b0678a")
How it ran

no invocation recorded.

Also present in other papers' code

Of 5 samples lifted from this paper's linked repositories, 5 carry a function identity and 0 do not. Of the 5 distinct functions with an identity, 3 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 3 later) and 2 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
custom_doc_links 9 other papers
6 dated earlier, 3 later
1403.6652 (2014-03)
DeepWalk: Online Learning of Social Representations
1604.07143 (2016-04)
Neural Random Forests
1812.08693 (2018-12)
An Empirical Study on Learning Bug-Fixing Patches in the Wild via Neural Machine Translation
and 6 more not named here
load_data 1 other paper
1 later
2004.06499 (2020-04)
What's so special about BERT's layers? A closer look at the NLP pipeline in monolingual and multilingual models
read_examples 1 other paper
1 later
2004.06499 (2020-04)
What's so special about BERT's layers? A closer look at the NLP pipeline in monolingual and multilingual models

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

The transformer-based pre-trained language model BERT has helped to improve state-of-the-art performance on many natural language processing (NLP) tasks. Using the same architecture and parameters, we developed and evaluated a monolingual Dutch BERT model called BERTje. Compared to the multilingual BERT model, which includes Dutch but is only based on Wikipedia text, BERTje is based on a large and diverse dataset of 2.4 billion tokens. BERTje consistently outperforms the equally-sized multilingual BERT model on downstream NLP tasks (part-of-speech tagging, named-entity recognition, semantic role labeling, and sentiment analysis). Our pre-trained Dutch BERT model is made available at https://github.com/wietsedv/bertje.

For agents

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

get_harvested_code_for_paper("1912.09582")
get_code_for_paper("1912.09582")
have("1912.09582")

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

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

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

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

Connect an agent — have() is free.