SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1508.07909 · ACL · 2015

Neural Machine Translation of Rare Words with Subword Units

Barry Haddow, Rico Sennrich, Alexandra Birch

arXiv · PDF · Open in the Atlas

Code that ran

21 of 30 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 1 has no contract verdict; 20 failures of our instrument; 9 no recorded run), measured 2026-11-24; 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/1508.07909.json · badge: /api/ran/1508.07909.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
SeonbeomKim/Python-Byte_Pair_Encoding community
Papers with Code archive
7 ran · 2 no recorded run
kh-mo/QA_wikisql community
Papers with Code archive
4 ran · 1 no recorded run
thinkwee/DPP_CNN_Summarization community
Papers with Code archive
2 ran · 3 no recorded run
rsennrich/subword-nmt marked official in Papers with Code
Papers with Code archive
2 ran · 2 no recorded run
karpathy/minbpe community
Papers with Code archive
2 ran · 1 no recorded run
copy not recorded community
not in the paper's declared repositories
2 ran · 0 no recorded run
ThAIKeras/bert community
Papers with Code archive
1 ran · 0 no recorded run
nyu-dl/dl4mt-simul-trans community
Papers with Code archive
1 ran · 0 no recorded run
FunctionStatusWhere it lives
BPE Ran
ran on a synthesized input
ThAIKeras/bert/bpe_helper.py
code served (permissive licence) · get_code("33b1567b39f86e71")
How it ran

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

import torch
import numpy as np
from math import log

# Create a tiny vocab file in memory
vocab_content = """hello 100
world 200
this 300
is 400
a 500
test 600
▁ 700
"""

# Write to a temporary file
import tempfile
with tempfile.NamedTemporaryFile(mode='w+', delete=False, encoding='utf8') as f:
    f.write(vocab_content)
    vocab_file = f.name

INIT_ARGS = {
    'vocab_file': vocab_file
}

# Create input string for encoding
input_string = "thisisatest"

ARGS = {
    's': input_string
}

METHOD = 'encode'
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
_bpe2words Ran
ran; our contract draft was wrong, not the code
nyu-dl/dl4mt-simul-trans/simultrans_model.py
code served (permissive licence) · get_code("70a8fed9225c5845")
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) 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 torch

def _bpe2words(capsw):
    capw = []
    for cc in capsw:
        capw += [cc.replace('@@ ', '')]
    return capw

ARGS = {
    'capsw': ['hello@@ world', 'foo@@ bar@@ baz', 'test']
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — 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
check_merge_info Ran
ran; our contract draft was wrong, not the code
SeonbeomKim/Python-Byte_Pair_Encoding/bpe_module/learn_BPE.py
pointer only (licence: NONE) · get_code("2032a0c86da75680")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, SeonbeomKim/Python-Byte_Pair_Encoding when it was checked. 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.

delete_some_stats Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
SeonbeomKim/Python-Byte_Pair_Encoding/bpe_module/learn_BPE.py
pointer only (licence: NONE) · get_code("c837ac919bdfe91e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, SeonbeomKim/Python-Byte_Pair_Encoding when it was checked. 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.

get_pair_statistics Ran
ran; our contract draft was wrong, not the code
this paper's copy was not recorded; identical code first harvested from rsennrich/subword-nmt
pointer only · get_code("fe96394f96a9c638")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. 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.

get_pair_statistics Ran
ran; our contract draft was wrong, not the code
kh-mo/QA_wikisql/learn_bpe.py
pointer only (licence: NONE) · get_code("e27a7ada9b96b37e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, kh-mo/QA_wikisql when it was checked. 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.

get_stats Ran
ran; our contract draft was wrong, not the code
SeonbeomKim/Python-Byte_Pair_Encoding/bpe_module/learn_BPE.py
pointer only (licence: NONE) · get_code("afdbbe2995c004e2")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, SeonbeomKim/Python-Byte_Pair_Encoding when it was checked. 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.

get_vocabulary Ran
ran; our contract draft was wrong, not the code
this paper's copy was not recorded; identical code first harvested from rsennrich/subword-nmt
pointer only · get_code("b83d785ca99bfc9f")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. 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.

get_vocabulary Ran
ran; our contract draft was wrong, not the code
kh-mo/QA_wikisql/learn_bpe.py
pointer only (licence: NONE) · get_code("9425aef3e44f6979")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, kh-mo/QA_wikisql when it was checked. 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.

get_vocabulary Ran
ran; our contract draft was wrong, not the code
thinkwee/DPP_CNN_Summarization/fairseq/raw_dataset/subword_nmt/learn_bpe.py
pointer only (licence: NONE) · get_code("bc7574327ea1f634")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, thinkwee/DPP_CNN_Summarization when it was checked. 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.

get_vocabulary_from_learn_BPE Ran
ran; our contract draft was wrong, not the code
SeonbeomKim/Python-Byte_Pair_Encoding/bpe_module/learn_BPE.py
pointer only (licence: NONE) · get_code("afac3ba7a001359e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, SeonbeomKim/Python-Byte_Pair_Encoding when it was checked. 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.

learn_bpe Ran
ran; our contract draft was wrong, not the code
kh-mo/QA_wikisql/learn_bpe.py
pointer only (licence: NONE) · get_code("a4985508aef2cb2a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, kh-mo/QA_wikisql when it was checked. 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.

merge_bpe_word Ran
ran; our contract draft was wrong, not the code
SeonbeomKim/Python-Byte_Pair_Encoding/bpe_module/learn_BPE.py
pointer only (licence: NONE) · get_code("029694838a73e5fc")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, SeonbeomKim/Python-Byte_Pair_Encoding when it was checked. 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.

merge_dictionary Ran
ran; our contract draft was wrong, not the code
SeonbeomKim/Python-Byte_Pair_Encoding/bpe_module/learn_BPE.py
pointer only (licence: NONE) · get_code("72ccea7ec0eb1e6a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, SeonbeomKim/Python-Byte_Pair_Encoding when it was checked. 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.

open_file Ran
ran; our contract draft was wrong, not the code
rsennrich/subword-nmt/subword_nmt/learn_bpe.py
code served (permissive licence) · get_code("6aafe96a739d0b09")
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) and returned _GeneratorContextManager. 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 for testing
temp_dir = tempfile.mkdtemp()
temp_file = os.path.join(temp_dir, "test.txt")

# Write some initial content to the file
with open(temp_file, 'w', encoding='utf-8') as f:
    f.write("test content")

ARGS = {
    'filename': temp_file,
    'mode': 'r'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
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 _GeneratorContextManager — a _GeneratorContextManager output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a _GeneratorContextManager 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
render_token Ran
ran; our contract draft was wrong, not the code
karpathy/minbpe/minbpe/base.py
code served (permissive licence) · get_code("1c202c7e568439b5")
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) 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 unicodedata

def replace_control_characters(s: str) -> str:
    chars = []
    for ch in s:
        if unicodedata.category(ch)[0] != 'C':
            chars.append(ch)
        else:
            chars.append(f'\\u{ord(ch):04x}')
    return ''.join(chars)

def render_token(t: bytes) -> str:
    s = t.decode('utf-8', errors='replace')
    s = replace_control_characters(s)
    return s

# Setup code to construct valid arguments
ARGS = {
    't': b'hello world'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
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
replace_control_characters Ran
ran; our contract draft was wrong, not the code
karpathy/minbpe/minbpe/base.py
code served (permissive licence) · get_code("15d9c32bbe7da76f")
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) 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 unicodedata

# The function takes a single string parameter and processes it
# by checking Unicode categories and replacing control characters
# with their escape sequences.

# Test with a string containing various characters:
# - Regular ASCII letters
# - Unicode letters
# - Control characters (category 'C')
# - Spaces and punctuation

test_string = "Hello\x00World\x01Test\u0009End"

ARGS = {
    's': test_string
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
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
replace_pair Ran
ran; our contract draft was wrong, not the code
kh-mo/QA_wikisql/learn_bpe.py
pointer only (licence: NONE) · get_code("d1027b3c5283677a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, kh-mo/QA_wikisql when it was checked. 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.

replace_pair Ran
ran; our contract draft was wrong, not the code
thinkwee/DPP_CNN_Summarization/fairseq/raw_dataset/subword_nmt/learn_bpe.py
pointer only (licence: NONE) · get_code("684c47713cee0e44")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, thinkwee/DPP_CNN_Summarization when it was checked. 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.

replace_pair Ran
ran; our contract draft was wrong, not the code
rsennrich/subword-nmt/subword_nmt/learn_bpe.py
code served (permissive licence) · get_code("ab293eff6ffc4b69")
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. 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 sys
import re

# Set up the arguments for replace_pair function

# The function works with:
# - pair: a tuple of two elements (strings or bytes)
# - vocab: a dict mapping indices to (word_tuple, frequency)
# - indices: a dict mapping pairs to sub-dicts of {index: frequency}
# - is_bytes: boolean flag

# Create a vocab dict: maps index -> (word_tuple, frequency)
# word_tuple is a tuple of strings/bytes representing word parts
vocab = {
    0: ((b'h', b'e', b'l', b'l', b'o'), 5),
    1: ((b'w', b'o', b'r', b'l', b'd'), 3),
    2: ((b'f', b'o', b'o'), 2),
}

# Create an indices dict: maps (pair) -> {index: frequency}
# The pair is the key, value is dict of {vocab_index: occurrence_count}
indices = {
    (b'h', b'e'): {0: 2, 1: 0},  # pair (b'h', b'e') appears in vocab indices 0 (2 times) and 1 (0 times, will be skipped)
    (b'o', b'r'): {1: 1},         # pair (b'o', b'r') appears in vocab index 1 (1 time)
}

# The pair to process
pair = (b'h', b'e')

# Flag for bytes mode
is_bytes = True

ARGS = {
    'pair': pair,
    'vocab': vocab,
    'indices': indices,
    'is_bytes': is_bytes,
}
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 — a list 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
selective_get_stats Ran
ran; our contract draft was wrong, not the code
SeonbeomKim/Python-Byte_Pair_Encoding/bpe_module/learn_BPE.py
pointer only (licence: NONE) · get_code("c0d8d4efee4a4015")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, SeonbeomKim/Python-Byte_Pair_Encoding when it was checked. 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.

Tokenizer Not yet run
unverified (harvested, no recorded run)
karpathy/minbpe/minbpe/base.py
code served (permissive licence) · get_code("293d3695d53b0cb1")
How it ran

no invocation recorded.

_get_vocabulary Not yet run
unverified (harvested, no recorded run)
rsennrich/subword-nmt/subword_nmt/learn_bpe.py
code served (permissive licence) · get_code("800b6a080cb3c624")
How it ran

no invocation recorded.

_learn_bpe Not yet run
unverified (harvested, no recorded run)
SeonbeomKim/Python-Byte_Pair_Encoding/bpe_module/learn_BPE.py
pointer only (licence: NONE) · get_code("133f6dc75e90bbd6")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, SeonbeomKim/Python-Byte_Pair_Encoding when it was checked. 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. No invocation recorded.

learn_bpe Not yet run
unverified (harvested, no recorded run)
thinkwee/DPP_CNN_Summarization/fairseq/raw_dataset/subword_nmt/learn_bpe.py
pointer only (licence: NONE) · get_code("0c8c96b6d6bd911a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, thinkwee/DPP_CNN_Summarization when it was checked. 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. No invocation recorded.

learn_bpe Not yet run
unverified (harvested, no recorded run)
rsennrich/subword-nmt/subword_nmt/learn_bpe.py
code served (permissive licence) · get_code("d86dc2151a1bd58e")
How it ran

no invocation recorded.

prune_stats Not yet run
unverified (harvested, no recorded run)
thinkwee/DPP_CNN_Summarization/fairseq/raw_dataset/subword_nmt/learn_bpe.py
pointer only (licence: NONE) · get_code("927c3c1d2631e415")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, thinkwee/DPP_CNN_Summarization when it was checked. 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. No invocation recorded.

save_voca Not yet run
unverified (harvested, no recorded run)
SeonbeomKim/Python-Byte_Pair_Encoding/bpe_module/learn_BPE.py
pointer only (licence: NONE) · get_code("e2122ad711c160ec")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, SeonbeomKim/Python-Byte_Pair_Encoding when it was checked. 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. No invocation recorded.

update_pair_statistics Not yet run
unverified (harvested, no recorded run)
kh-mo/QA_wikisql/learn_bpe.py
pointer only (licence: NONE) · get_code("c5fcb9cba4915130")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, kh-mo/QA_wikisql when it was checked. 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. No invocation recorded.

update_pair_statistics Not yet run
unverified (harvested, no recorded run)
thinkwee/DPP_CNN_Summarization/fairseq/raw_dataset/subword_nmt/learn_bpe.py
pointer only (licence: NONE) · get_code("718aeb6813392ac3")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, thinkwee/DPP_CNN_Summarization when it was checked. 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. No invocation recorded.

Also present in other papers' code

Of 30 samples lifted from this paper's linked repositories, 30 carry a function identity and 0 do not. Of the 30 distinct functions with an identity, 4 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 4 later) and 26 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
get_pair_statistics
brick of this paper's assembly: helper
3 other papers
3 later
1710.11041 (2017-10)
Unsupervised Neural Machine Translation
1909.00502 (2019-09)
An Empirical Study of Incorporating Pseudo Data into Grammatical Error Correction
1910.13267 (2019-10)
BPE-Dropout: Simple and Effective Subword Regularization
get_vocabulary
brick of this paper's assembly: helper
2 other papers
2 later
1710.11041 (2017-10)
Unsupervised Neural Machine Translation
1910.13267 (2019-10)
BPE-Dropout: Simple and Effective Subword Regularization
get_vocabulary
brick of this paper's assembly: data_transform
1 other paper
1 later
1910.13267 (2019-10)
BPE-Dropout: Simple and Effective Subword Regularization
replace_pair
brick of this paper's assembly: helper
1 other paper
1 later
1909.00502 (2019-09)
An Empirical Study of Incorporating Pseudo Data into Grammatical Error Correction

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

Neural machine translation (NMT) models typically operate with a fixed vocabulary, but translation is an open-vocabulary problem. Previous work addresses the translation of out-of-vocabulary words by backing off to a dictionary. In this paper, we introduce a simpler and more effective approach, making the NMT model capable of open-vocabulary translation by encoding rare and unknown words as sequences of subword units. This is based on the intuition that various word classes are translatable via smaller units than words, for instance names (via character copying or transliteration), compounds (via compositional translation), and cognates and loanwords (via phonological and morphological transformations). We discuss the suitability of different word segmentation techniques, including simple character ngram models and a segmentation based on the byte pair encoding compression algorithm, and empirically show that subword models improve over a back-off dictionary baseline for the WMT 15 translation tasks English→German and English→Russian by up to 1.1 and 1.3 BLEU, respectively.

For agents

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

get_harvested_code_for_paper("1508.07909")
get_code_for_paper("1508.07909")
have("1508.07909")

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

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

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

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

Connect an agent — have() is free.