SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2009.12534 · 2020

iNLTK: Natural Language Toolkit for Indic Languages

arXiv · PDF · Open in the Atlas

Code that ran

3 of 6 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 3 have no contract verdict; 0 failures of our instrument; 3 no recorded run), measured 2026-11-22; 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/2009.12534.json · badge: /api/ran/2009.12534.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
goru001/inltk canonical (classifier label)
classifier basis: census
3 ran · 3 no recorded run
FunctionStatusWhere it lives
download_file Ran
ran on a synthesized input
goru001/inltk/inltk/download_assets.py
code served (permissive licence) · get_code("1d17b0f13465166d")
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 coroutine. It ran in syntology-harvest-sandbox:v5-deps (sha256:6a292aa1aed1) at 2026-09-27T00:55:41Z. 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 aiohttp
import os
from pathlib import Path
from tempfile import TemporaryDirectory

# Create a temporary directory for the destination
temp_dir = TemporaryDirectory()
dest_path = Path(temp_dir.name)

# Define the arguments
url = "https://example.com/model.bin"
dest = dest_path
fname = "test_model.bin"

ARGS = {
    "url": url,
    "dest": dest,
    "fname": fname
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
aiohttp — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type coroutine — a coroutine output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a coroutine output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image syntology-harvest-sandbox:v5-deps (sha256:6a292aa1aed1); 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
is_english Ran
ran on a synthesized input
goru001/inltk/inltk/utils.py
code served (permissive licence) · get_code("c6bd5918dc29cec3")
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; no output shape is stated. It ran in syntology-harvest-sandbox:v5-deps (sha256:6a292aa1aed1) at 2026-09-27T00:55:41Z. 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
import numpy as np

ARGS = {
    "s": "Hello, this is an English string"
}
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 bool, ndim 0, dtype family float — no output shape is stated: no later run recorded an output shape for this sample (observed_output and metamorphic_properties carry none; shape_contract and output_contract record ndim only)
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 syntology-harvest-sandbox:v5-deps (sha256:6a292aa1aed1); 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
setup_language Ran
ran on a synthesized input
goru001/inltk/inltk/download_assets.py
code served (permissive licence) · get_code("f8ef889fc3dcf131")
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 coroutine. 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 asyncio
from pathlib import Path
from unittest.mock import Mock, AsyncMock, patch
import os
import tempfile


class LMConfigs:
    """Stand-in class that mimics LMConfigs behavior"""
    def __init__(self, language_code: str):
        self.language_code = language_code
    
    def get_config(self):
        """Returns a config dict with required keys"""
        return {
            'lm_model_url': 'https://example.com/model.bin',
            'lm_model_file_name': 'model.bin',
            'tokenizer_model_url': 'https://example.com/tokenizer.model',
            'tokenizer_model_file_name': 'tokenizer.model'
        }


# Mock the aiohttp module to prevent actual network calls
async def mock_download_file(url, dest, fname):
    """Mock version that doesn't actually download"""
    if (dest / f'{fname}').exists():
        return False
    os.makedirs(dest, exist_ok=True)
    # Create empty file instead of downloading
    with open(dest / f'{fname}', 'wb') as f:
        f.write(b'mock_data')
    return True


async def mock_setup_language(language_code: str):
    """Mock version that uses mock_download_file"""
    lmconfig = LMConfigs(language_code)
    config = lmconfig.get_config()
    
    # Use temporary directory for testing
    with tempfile.TemporaryDirectory() as tmpdir:
        path = Path(tmpdir)
        await mock_download_file(config['lm_model_url'], path / 'models' / f'{language_code}', config['lm_model_file_name'])
        await mock_download_file(config['tokenizer_model_url'], path / 'models' / f'{language_code}', config['tokenizer_model_file_name'])
    
    return True


ARGS = {
    'language_code': 'en'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
aiohttp — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type coroutine — a coroutine output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a coroutine 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
cos_sim Not yet run
unverified (harvested, no recorded run)
goru001/inltk/inltk/utils.py
code served (permissive licence) · get_code("e332284c5d26af5e")
How it ran

no invocation recorded.

handle_all_caps Not yet run
unverified (harvested, no recorded run)
goru001/inltk/inltk/utils.py
code served (permissive licence) · get_code("6894ddb79710d564")
How it ran

no invocation recorded.

verify_language Not yet run
unverified (harvested, no recorded run)
goru001/inltk/inltk/download_assets.py
code served (permissive licence) · get_code("931db6cd051e7147")
How it ran

no invocation recorded.

Also present in other papers' code

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

Repositories linked to this paper

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

Abstract

We present iNLTK, an open-source NLP library consisting of pre-trained language models and out-of-the-box support for Data Augmentation, Textual Similarity, Sentence Embeddings, Word Embeddings, Tokenization and Text Generation in 13 Indic Languages. By using pre-trained models from iNLTK for text classification on publicly available datasets, we significantly outperform previously reported results. On these datasets, we also show that by using pre-trained models and data augmentation from iNLTK, we can achieve more than 95% of the previous best performance by using less than 10% of the training data. iNLTK is already being widely used by the community and has 40,000+ downloads, 600+ stars and 100+ forks on GitHub. The library is available at https://github.com/goru001/inltk.

For agents

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

get_harvested_code_for_paper("2009.12534")
get_code_for_paper("2009.12534")
have("2009.12534")

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

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

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

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

Connect an agent — have() is free.