SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1612.03651 · 2016

FastText.zip: Compressing text classification models

arXiv · PDF · Open in the Atlas

Code that ran

11 of 18 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 8 have no contract verdict; 3 failures of our instrument; 7 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/1612.03651.json · badge: /api/ran/1612.03651.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
FengJiaChunFromSYSU/fastText community (classifier label)
classifier basis not recorded on the link
5 ran · 2 no recorded run
currentsapi/fastlangid community (classifier label)
classifier basis not recorded on the link
2 ran · 1 no recorded run
copy not recorded community
not in the paper's declared repositories
2 ran · 1 no recorded run
kpu/fastertext community (classifier label)
classifier basis not recorded on the link
1 ran · 1 no recorded run
explosion/floret community (classifier label)
classifier basis: plan_row
1 ran · 1 no recorded run
zafercavdar/fasttext-langdetect community (classifier label)
classifier basis not recorded on the link
0 ran · 1 no recorded run
FunctionStatusWhere it lives
clean_text Ran
ran on a synthesized input
currentsapi/fastlangid/fastlangid/utils.py
code served (permissive licence) · get_code("cc21a5b05edde91f")
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 re

def clean_text(text):
    RAW_CONTENT_CLEANER = re.compile('#video_container #my-video{width:100%;padding-bottom:56.25%; height:56.25%;}|\\[embedded content\\]|Newsfrom Japan')
    WHITE_SPACE_CLEANER = [(re.compile('\\s\\s+'), ' '), (re.compile('\\n+'), '\n\n'), (re.compile('\\t+'), '\t\t')]
    HTML_CLEANER = re.compile('<.*?>')
    
    results = re.sub(RAW_CONTENT_CLEANER, '', str(text))
    results = re.sub(HTML_CLEANER, '', results)
    results = results.strip()
    for regex_match, replace_token in WHITE_SPACE_CLEANER:
        results = re.sub(regex_match, replace_token, results)
    return results

ARGS = {
    'text': 'This is a sample text with <html>tags</html> and multiple   spaces\n\n\nand\ttabs that need cleaning [embedded content]'
}
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
convert2unicode Ran
ran on a synthesized input
currentsapi/fastlangid/fastlangid/regex_rule.py
code served (permissive licence) · get_code("a6a95c0a40fa3d1f")
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.

ARGS = {
    'code': 'U+1F600-U+0041-test-U+20AC'
}
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
create_lookup_tables Ran
ran; our contract draft was wrong, not the code
this paper's copy was not recorded; identical code first harvested from SarangShaikh201/fastText
pointer only; the stored copy get_code serves, from SarangShaikh201/fastText, is pointer only (licence: NOASSERTION) · get_code("a16b79c7bc1860e5")
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.

find_nearest_neighbor Ran
ran on a synthesized input
FengJiaChunFromSYSU/fastText/python/fastText/util/util.py
pointer only (licence: MIT); the stored copy get_code serves, from facebookresearch/fastText, is pointer only (licence: MIT) · get_code("5d48a5764718f390")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, FengJiaChunFromSYSU/fastText, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with 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.

guess_target_name Ran
ran on a synthesized input
kpu/fastertext/reduce_model.py
pointer only (licence: MIT); the stored copy get_code serves, from facebookresearch/fastText, is pointer only (licence: MIT) · get_code("c2a80677a6cb6044")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, kpu/fastertext, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with 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.

idx Ran
ran on a synthesized input
FengJiaChunFromSYSU/fastText/alignment/utils.py
pointer only (licence: MIT); the stored copy get_code serves, from facebookresearch/fastText, is pointer only (licence: MIT) · get_code("831f6e244ecea2bb")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, FengJiaChunFromSYSU/fastText, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with 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.

preprocess Ran
ran; our contract draft was wrong, not the code
this paper's copy was not recorded; identical code first harvested from SarangShaikh201/fastText
pointer only; the stored copy get_code serves, from SarangShaikh201/fastText, is pointer only (licence: NOASSERTION) · get_code("55d2494d83e5c523")
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.

procrustes Ran
ran on a synthesized input
FengJiaChunFromSYSU/fastText/alignment/utils.py
pointer only (licence: MIT); the stored copy get_code serves, from facebookresearch/fastText, is pointer only (licence: MIT) · get_code("6f28ff1eccefb093")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, FengJiaChunFromSYSU/fastText, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with 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.

read_args Ran
ran; our contract draft was wrong, not the code
explosion/floret/python/floret_module/floret/floret.py
code served (permissive licence) · get_code("f697966cbe929024")
How it ran

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

arg_list = ['value1', 5, True]

arg_dict = {
    'min_count': 10,
    'word_ngrams': 2
}

arg_names = ['input', 'dim', 'verbose', 'minCount', 'wordNgrams', 'lrUpdateRate', 'label', 'pretrainedVectors']

default_values = {
    'dim': 100,
    'verbose': False,
    'minCount': 5,
    'wordNgrams': 1,
    'lrUpdateRate': 100,
    'label': '__label__',
    'pretrainedVectors': ''
}

ARGS = {
    'arg_list': arg_list,
    'arg_dict': arg_dict,
    'arg_names': arg_names,
    'default_values': default_values
}
Setup block drafted by
a language model, Claude Sonnet 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 tuple, ndim 1, dtype family float — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
sqrt_eig Ran
ran on a synthesized input
FengJiaChunFromSYSU/fastText/alignment/unsup_align.py
pointer only (licence: MIT); the stored copy get_code serves, from facebookresearch/fastText, is pointer only (licence: MIT) · get_code("e4a10d52bc6d1601")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, FengJiaChunFromSYSU/fastText, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with 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.

test Ran
ran on a synthesized input
FengJiaChunFromSYSU/fastText/python/fastText/util/util.py
pointer only (licence: MIT); the stored copy get_code serves, from facebookresearch/fastText, is pointer only (licence: MIT) · get_code("5c3bcf5ae2042c99")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, FengJiaChunFromSYSU/fastText, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with 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.

download_model Not yet run
unverified (harvested, no recorded run)
zafercavdar/fasttext-langdetect/src/ftlangdetect/detect.py
code served (permissive licence) · get_code("c0cfe33b609d38fd")
How it ran

no invocation recorded.

get_batches Not yet run
unverified (harvested, no recorded run)
this paper's copy was not recorded; identical code first harvested from SarangShaikh201/fastText
pointer only; the stored copy get_code serves, from SarangShaikh201/fastText, is pointer only (licence: NOASSERTION) · get_code("cde234836e3f3978")
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. No invocation recorded.

getknn Not yet run
unverified (harvested, no recorded run)
FengJiaChunFromSYSU/fastText/alignment/align.py
pointer only (licence: MIT); the stored copy get_code serves, from facebookresearch/fastText, is pointer only (licence: MIT) · get_code("f685d8c430dfac70")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, FengJiaChunFromSYSU/fastText, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with 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. No invocation recorded.

load_vectors Not yet run
unverified (harvested, no recorded run)
FengJiaChunFromSYSU/fastText/alignment/utils.py
pointer only (licence: MIT); the stored copy get_code serves, from facebookresearch/fastText, is pointer only (licence: MIT) · get_code("5b38e4065c54800a")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, FengJiaChunFromSYSU/fastText, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with 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. No invocation recorded.

only_punctuations Not yet run
unverified (harvested, no recorded run)
currentsapi/fastlangid/fastlangid/utils.py
code served (permissive licence) · get_code("4b17e794d15f700c")
How it ran

no invocation recorded.

rcsls Not yet run
unverified (harvested, no recorded run)
kpu/fastertext/alignment/unsup_multialign.py
pointer only (licence: MIT); the stored copy get_code serves, from facebookresearch/fastText, is pointer only (licence: MIT) · get_code("d484b37352fc8959")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, kpu/fastertext, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with 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. No invocation recorded.

reduce_model Not yet run
unverified (harvested, no recorded run)
explosion/floret/python/floret_module/floret/util/util.py
pointer only (licence: MIT); the stored copy get_code serves, from facebookresearch/fastText, is pointer only (licence: MIT) · get_code("3ab9d330ea24c434")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from facebookresearch/fastText, and MIT, as GitHub detects it on that repository, is in the permissive set, but a licence decision keeps the body a pointer: its licence file names an outside party, so it may cover vendored code rather than the repository owner's files (recorded as pointer:licence_names_third_party_corporation). 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 18 samples lifted from this paper's linked repositories, 18 carry a function identity and 0 do not. Of the 18 distinct functions with an identity, 14 are also present in other papers whose code we hold (4 with at least one paper dated earlier, 0 the same month, 12 later) and 4 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
read_args 3 other papers
2 dated earlier, 1 later
1607.01759 (2016-07)
Bag of Tricks for Efficient Text Classification
1607.04606 (2016-07)
Enriching Word Vectors with Subword Information
2304.04613 (2023-04)
On Evaluation of Bangla Word Analogies
create_lookup_tables 2 other papers
1 dated earlier, 1 later
1607.04606 (2016-07)
Enriching Word Vectors with Subword Information
1803.02893 (2018-03)
An efficient framework for learning sentence representations
find_nearest_neighbor 1 other paper
1 later
2304.04613 (2023-04)
On Evaluation of Bangla Word Analogies
get_batches 1 other paper
1 dated earlier
1607.04606 (2016-07)
Enriching Word Vectors with Subword Information
getknn 1 other paper
1 later
2304.04613 (2023-04)
On Evaluation of Bangla Word Analogies
guess_target_name 1 other paper
1 later
2304.04613 (2023-04)
On Evaluation of Bangla Word Analogies
idx 1 other paper
1 later
2304.04613 (2023-04)
On Evaluation of Bangla Word Analogies
load_vectors 1 other paper
1 later
2304.04613 (2023-04)
On Evaluation of Bangla Word Analogies
preprocess 1 other paper
1 dated earlier
1607.04606 (2016-07)
Enriching Word Vectors with Subword Information
procrustes 1 other paper
1 later
2304.04613 (2023-04)
On Evaluation of Bangla Word Analogies
rcsls 1 other paper
1 later
2304.04613 (2023-04)
On Evaluation of Bangla Word Analogies
reduce_model 1 other paper
1 later
2304.04613 (2023-04)
On Evaluation of Bangla Word Analogies
sqrt_eig 1 other paper
1 later
2304.04613 (2023-04)
On Evaluation of Bangla Word Analogies
test 1 other paper
1 later
2304.04613 (2023-04)
On Evaluation of Bangla Word Analogies

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

More are linked than shown here.

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

We consider the problem of producing compact architectures for text classification, such that the full model fits in a limited amount of memory. After considering different solutions inspired by the hashing literature, we propose a method built upon product quantization to store word embeddings. While the original technique leads to a loss in accuracy, we adapt this method to circumvent quantization artefacts. Our experiments carried out on several benchmarks show that our approach typically requires two orders of magnitude less memory than fastText while being only slightly inferior with respect to accuracy. As a result, it outperforms the state of the art by a good margin in terms of the compromise between memory usage and accuracy.

For agents

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

get_harvested_code_for_paper("1612.03651")
get_code_for_paper("1612.03651")
have("1612.03651")

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

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

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

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

Connect an agent — have() is free.