SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1901.11196 · 2019

EDA: Easy Data Augmentation Techniques for Boosting Performance on Text Classification Tasks

arXiv · PDF · Open in the Atlas

Code that ran

9 of 13 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 7 have no contract verdict; 2 failures of our instrument; 4 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/1901.11196.json · badge: /api/ran/1901.11196.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
WengLab-InformaticsResearch/UMLS-EDA community (classifier label)
classifier basis: plan_row
4 ran · 2 no recorded run
alikhodadoost/Persian-Sentence-Augmenter community (classifier label)
classifier basis not recorded on the link
3 ran · 0 no recorded run
wac81/textda community (classifier label)
classifier basis not recorded on the link
1 ran · 2 no recorded run
akkarimi/aeda_nlp extension (classifier label)
classifier basis: classifier_2025
1 ran · 0 no recorded run
FunctionStatusWhere it lives
get_only_chars Ran
ran; our contract draft was wrong, not the code
WengLab-InformaticsResearch/UMLS-EDA/src/eda4ner.py
code served (permissive licence) · get_code("f15117422b72cf43")
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 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

# The function takes a single parameter 'line' which is a string
# It processes the string by removing certain characters, replacing others,
# converting to lowercase, and cleaning up spaces

line = "Hello, World! This is a test-string with 'quotes' and—dashes.\n\tAnd tabs."

ARGS = {
    'line': line
}
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 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_reuslt Ran
ran on a synthesized input
wac81/textda/textda/youdao_translate.py
code served (permissive licence) · get_code("98189c47c8a85a19")
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 json

# The function expects a 'repsonse' parameter that is a JSON string
# It parses the JSON and accesses ['translateResult'][0][0]['tgt']

# Construct a valid response string that matches the expected structure
response_data = {
    "translateResult": [
        [
            {
                "tgt": "Hello world"
            }
        ]
    ]
}

response_string = json.dumps(response_data)

ARGS = {
    "repsonse": response_string
}
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_umls_tagging Ran
ran on a synthesized input
WengLab-InformaticsResearch/UMLS-EDA/src/eda.py
code served (permissive licence) · get_code("b3980810c3d6ee0e")
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, 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
import numpy as np

class MockMatcher:
    def match(self, text, best_match=False, ignore_syntax=False):
        """
        Mock matcher that returns UMLS-like match results.
        Returns a list of tuples, where each tuple contains a dict with 'cui' and 'term'.
        """
        return [
            ({'cui': 'C0011849', 'term': 'diabetes'}, 0, 8),
            ({'cui': 'C0020538', 'term': 'hypertension'}, 15, 27),
        ]

# Create a mock matcher instance
matcher = MockMatcher()

# Define arguments for the function
ARGS = {
    'text': 'diabetes and hypertension are common diseases',
    'matcher': matcher
}
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 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
insert_punctuation_marks Ran
ran; our contract draft was wrong, not the code
akkarimi/aeda_nlp/code/aeda.py
pointer only (licence: NONE) · get_code("ec7f7431d2ab05b8")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, akkarimi/aeda_nlp 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.

isSubstring Ran
ran on a synthesized input
WengLab-InformaticsResearch/UMLS-EDA/src/eda4ner.py
code served (permissive licence) · get_code("2b0a89c441da11e0")
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 int, ndim 0, dtype family int, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape 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

# Analyze the function: isSubstring(s1, s2)
# - s1 and s2 are sequences that support len() and indexing with []
# - The function checks if s1 is a substring of s2
# - It returns the starting index if found, False otherwise

# s1 should be a shorter sequence (the pattern to find)
# s2 should be a longer sequence (the text to search in)

s1 = "abc"
s2 = "xyzabcdef"

ARGS = {
    "s1": s1,
    "s2": s2
}
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 int, ndim 0, dtype family int, shape () — shape () as a later run recorded it
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
is_fa Ran
ran on a synthesized input
alikhodadoost/Persian-Sentence-Augmenter/augment/utils.py
code served (permissive licence) · get_code("3f9990a17de8c7cd")
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, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape 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

FA_CHARS = ['ا', 'ب', 'پ', 'ت', 'ث', 'ج', 'چ', 'ح', 'خ', 'د', 'ذ', 'ر', 'ز', 'ژ', 'س', 'ش', 'ص', 'ض', 'ط', 'ظ', 'ع', 'غ', 'ف', 'ق', 'ک', 'گ', 'ل', 'م', 'ن', 'و', 'ه', 'ی', 'ئ', 'آ', 'اً', 'أ', 'إ', 'ء', 'ؤ']

def is_fa(word: str) -> bool:
    fa = True
    for c in word:
        if c not in FA_CHARS:
            fa = False
            break
    return fa

ARGS = {
    "word": "سلام"
}
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 bool, ndim 0, dtype family float, shape () — shape () as a later run recorded it
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
ngram_index Ran
ran on a synthesized input
WengLab-InformaticsResearch/UMLS-EDA/src/eda4ner.py
code served (permissive licence) · get_code("140cb152d5a22b11")
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 int, ndim 0, dtype family int, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape 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 nltk
import torch

torch.manual_seed(0)

words = ["the", "quick", "brown", "fox", "jumps"]
ngram = ["brown", "fox"]

ARGS = {
    "words": words,
    "ngram": ngram,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
nltk, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type int, ndim 0, dtype family int, shape () — shape () as a later run recorded it
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
preprocess Ran
ran on a synthesized input
alikhodadoost/Persian-Sentence-Augmenter/augment/utils.py
code served (permissive licence) · get_code("98d52939796d3671")
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 torch

torch.manual_seed(0)

# The function preprocess takes a single string parameter and performs
# string replacements on it. No special setup needed beyond a simple string.

ARGS = {
    "sentence": "hello-world\texample\ntext"
}
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 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
remove_puncs Ran
ran on a synthesized input
alikhodadoost/Persian-Sentence-Augmenter/augment/utils.py
code served (permissive licence) · get_code("1e0ed12d526c0770")
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.

# Setup code for remove_puncs function

ARGS = {
    "sentence": "Hello, world! This is a test؟ with some punctuation: yes; it works…"
}
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_atoms Not yet run
unverified (harvested, no recorded run)
WengLab-InformaticsResearch/UMLS-EDA/src/eda.py
code served (permissive licence) · get_code("f9a184ef8baefe79")
How it ran

no invocation recorded.

get_only_chars Not yet run
unverified (harvested, no recorded run)
WengLab-InformaticsResearch/UMLS-EDA/src/eda.py
code served (permissive licence) · get_code("2dacb6d9d554e193")
How it ran

no invocation recorded.

read_text_src Not yet run
unverified (harvested, no recorded run)
wac81/textda/textda/youdao_translate.py
code served (permissive licence) · get_code("fff3d19c06e6480c")
How it ran

no invocation recorded.

translate Not yet run
unverified (harvested, no recorded run)
wac81/textda/textda/youdao_translate.py
code served (permissive licence) · get_code("be53242ffe2dc1e4")
How it ran

no invocation recorded.

Also present in other papers' code

Of 13 samples lifted from this paper's linked repositories, 13 carry a function identity and 0 do not. Of the 13 distinct functions with an identity, 2 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 2 later) and 11 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_only_chars 6 other papers
6 later
2103.07552 (2021-03)
Few-Shot Text Classification with Triplet Networks, Data Augmentation, and Curriculum Learning
2204.01959 (2022-04)
Data Augmentation for Intent Classification with Off-the-shelf Large Language Models
2205.01308 (2022-05)
Contrastive Learning for Prompt-Based Few-Shot Language Learners
and 3 more not named here
insert_punctuation_marks 1 other paper
1 later
2108.13230 (2021-08)
AEDA: An Easier Data Augmentation Technique for Text Classification

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 EDA: easy data augmentation techniques for boosting performance on text classification tasks. EDA consists of four simple but powerful operations: synonym replacement, random insertion, random swap, and random deletion. On five text classification tasks, we show that EDA improves performance for both convolutional and recurrent neural networks. EDA demonstrates particularly strong results for smaller datasets; on average, across five datasets, training with EDA while using only 50% of the available training set achieved the same accuracy as normal training with all available data. We also performed extensive ablation studies and suggest parameters for practical use.

For agents

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

get_harvested_code_for_paper("1901.11196")
get_code_for_paper("1901.11196")
have("1901.11196")

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

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

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

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

Connect an agent — have() is free.