SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1805.09821 · 2018

A Corpus for Multilingual Document Classification in Eight Languages

arXiv · PDF · Open in the Atlas

Code that ran

8 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, 1 violated it and 7 have no contract verdict; 0 failures of our instrument; 7 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/1805.09821.json · badge: /api/ran/1805.09821.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
facebookresearch/MLDoc canonical (classifier label)
classifier basis: classifier_2025
1 ran · 0 no recorded run
n-waves/multifit community (classifier label)
classifier basis not recorded on the link
7 ran · 7 no recorded run
FunctionStatusWhere it lives
build_vocab Ran
ran on a synthesized input
n-waves/multifit/multifit/datasets/postprocess_wikitext.py
code served (permissive licence) · get_code("ddc663023f98e224")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import tempfile
import os

# Create a temporary file with sample text data
temp_dir = tempfile.mkdtemp()
file_path = os.path.join(temp_dir, "sample.txt")

# Write sample data to the file
with open(file_path, 'w', encoding='utf-8') as f:
    f.write("hello world test\n")
    f.write("hello there world\n")
    f.write("hello hello hello\n")
    f.write("test test test\n")
    f.write("rare word\n")

ARGS = {
    'file_path': file_path,
    'cutoff': 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 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
check_data_sufficiency Ran
ran, violated the contract we drafted
facebookresearch/MLDoc/sampling_rcv2.py
pointer only (licence: NOASSERTION) · get_code("ecc0491c7303786a")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, facebookresearch/MLDoc (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

cross_remove_duplicates Ran
ran on a synthesized input
n-waves/multifit/split-cls.py
code served (permissive licence) · get_code("5f761b0bed59bd96")
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 DataFrame. 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 pandas as pd
import re

# Create sample dataframes with the required 'text' column
from_df = pd.DataFrame({
    'text': ['hello world', 'foo bar', 'test…', 'prefix match', 'another text']
})

other_df = pd.DataFrame({
    'text': ['hello world', 'prefix…', 'other', 'something…']
})

ARGS = {
    'from_df': from_df,
    'other_df': other_df
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
pandas — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type DataFrame — a DataFrame output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DataFrame output the recorded ndim 2 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
detect_lang_from_dataset_path Ran
ran on a synthesized input
n-waves/multifit/multifit/training.py
code served (permissive licence) · get_code("57b99f2ca95b81fb")
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.

from pathlib import Path

ARGS = {
    "dataset_path": Path("en-1024"),
}
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_and_unzip_data Ran
ran on a synthesized input
n-waves/multifit/prepare_xnli.py
code served (permissive licence) · get_code("6f5f358981413f2c")
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
import zipfile
import os

# Create a temporary directory for testing
temp_dir = tempfile.mkdtemp()

# Create a mock zip file to use as source
mock_zip_path = Path(temp_dir) / "mock_data.zip"
with zipfile.ZipFile(mock_zip_path, 'w') as zf:
    zf.writestr("test_file.txt", "test content")

# Define arguments for get_and_unzip_data
ARGS = {
    "url": "https://example.com/mock_data.zip",
    "fname": "mock_data.zip",
    "dest": temp_dir
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
tqdm — 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
remove_duplicates Ran
ran on a synthesized input
n-waves/multifit/split-cls.py
code served (permissive licence) · get_code("21075dccf90eda43")
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 DataFrame. 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 pandas as pd
import numpy as np

# Create a sample DataFrame with text column
# The function removes exact duplicates and then removes rows where the text
# ends with '…' and there are multiple rows starting with the prefix (without '…')
df = pd.DataFrame({
    'text': [
        'Hello world',
        'Hello world',  # exact duplicate
        'Hello there',
        'Hello there…',  # ends with ellipsis, prefix "Hello there" appears once before
        'Test case',
        'Test case…',   # ends with ellipsis, prefix "Test case" appears once before
        'Another example',
    ]
})

ARGS = {
    'df': df
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, pandas — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type DataFrame — a DataFrame output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DataFrame output the recorded ndim 2 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
remove_rt Ran
ran on a synthesized input
n-waves/multifit/split-cls.py
code served (permissive licence) · get_code("3d6c8a5734a1712d")
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 DataFrame. 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 pandas as pd
import numpy as np

# Create a small DataFrame with a 'text' column
df = pd.DataFrame({
    'text': [
        'RT @anonymized_account Hello world',
        'RT @anonymized_account This is a test',
        'Normal tweet without RT',
        'RT @anonymized_account Another message'
    ]
})

ARGS = {
    'df': df
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, pandas — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type DataFrame — a DataFrame output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DataFrame output the recorded ndim 2 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
to_json_serializable Ran
ran on a synthesized input
n-waves/multifit/multifit/training.py
code served (permissive licence) · get_code("f32a11c0002ecb23")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

torch.manual_seed(0)

# The function to_json_serializable takes a dict and converts non-JSON-serializable
# values to strings. It recursively handles nested dicts and preserves float, int, 
# str, list, tuple, and None values.

# Build a comprehensive test dict with various types
test_dict = {
    "simple_int": 42,
    "simple_float": 3.14,
    "simple_str": "hello",
    "simple_list": [1, 2, 3],
    "simple_tuple": (4, 5, 6),
    "none_value": None,
    "nested_dict": {
        "inner_int": 10,
        "inner_str": "nested",
        "inner_list": [7, 8, 9]
    },
    "torch_tensor": torch.tensor([1.0, 2.0, 3.0, 4.0]),
    "numpy_array": np.array([1, 2, 3]),
    "custom_object": object(),
    "nested_with_non_serializable": {
        "inner_tensor": torch.randn(2, 4),
        "inner_numpy": np.ones((3, 2)),
        "inner_int": 99
    }
}

ARGS = {
    "d": test_dict
}
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 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
download_data Not yet run
unverified (harvested, no recorded run)
n-waves/multifit/prepare_xnli.py
code served (permissive licence) · get_code("fea81e299034679b")
How it ran

no invocation recorded.

get_texts Not yet run
unverified (harvested, no recorded run)
n-waves/multifit/multifit/datasets/utils.py
code served (permissive licence) · get_code("c657462a7c04bcc5")
How it ran

no invocation recorded.

multifit1152_lstm_nl3 Not yet run
unverified (harvested, no recorded run)
n-waves/multifit/multifit/configurations.py
code served (permissive licence) · get_code("47aefbe32b4a53dc")
How it ran

no invocation recorded.

multifit1552_fp32 Not yet run
unverified (harvested, no recorded run)
n-waves/multifit/multifit/configurations.py
code served (permissive licence) · get_code("1232e453f40b140f")
How it ran

no invocation recorded.

patch_learner Not yet run
unverified (harvested, no recorded run)
n-waves/multifit/multifit/training.py
code served (permissive licence) · get_code("620047035f3f6733")
How it ran

no invocation recorded.

read_clas_csv Not yet run
unverified (harvested, no recorded run)
n-waves/multifit/multifit/datasets/dataset.py
code served (permissive licence) · get_code("356ad3b49f5db3bc")
How it ran

no invocation recorded.

read_wiki_articles Not yet run
unverified (harvested, no recorded run)
n-waves/multifit/multifit/datasets/dataset.py
code served (permissive licence) · get_code("e4d788b551ad578b")
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, 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 15 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

Cross-lingual document classification aims at training a document classifier on resources in one language and transferring it to a different language without any additional resources. Several approaches have been proposed in the literature and the current best practice is to evaluate them on a subset of the Reuters Corpus Volume 2. However, this subset covers only few languages (English, German, French and Spanish) and almost all published works focus on the the transfer between English and German. In addition, we have observed that the class prior distributions differ significantly between the languages. We argue that this complicates the evaluation of the multilinguality. In this paper, we propose a new subset of the Reuters corpus with balanced class priors for eight languages. By adding Italian, Russian, Japanese and Chinese, we cover languages which are very different with respect to syntax, morphology, etc. We provide strong baselines for all language transfer directions using multilingual word and sentence embeddings respectively. Our goal is to offer a freely available framework to evaluate cross-lingual document classification, and we hope to foster by these means, research in this important area.

For agents

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

get_harvested_code_for_paper("1805.09821")
get_code_for_paper("1805.09821")
have("1805.09821")

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

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

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

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

Connect an agent — have() is free.