langtest.transform.robustness#

Classes

AbbreviationInsertion()

A class for adding abbreviations to the input text.

AddContext()

A class for adding context to text samples.

AddContraction()

A class for adding contractions to text samples.

AddOcrTypo()

A class for adding OCR typos to the input text.

AddPunctuation()

A class for adding punctuation to text samples.

AddSlangifyTypo()

A class for adding slangs to text typos to the input text.

AddSpeechToTextTypo()

A class for adding common speech to text typos to the input text.

AddTypo()

A class for adding typos to text samples.

AdjectiveAntonymSwap()

A class for swaping adjectives to their antonyms

AdjectiveSynonymSwap()

A class for swaping adjectives to their synonyms

BaseRobustness()

Abstract base class for implementing robustness measures.

ConvertAccent()

A class for converting accents in text samples.

DyslexiaWordSwap()

A class for simulating dyslexic word swapping.

LowerCase()

A class for transforming text samples to lowercase.

MultiplePerturbations()

A class for applying multiple perturbations to transform a sample list.

NumberToWord()

A class for converting numbers to words.

RandomAge()

A class for adding abbreviations to the input text.

RobustnessTestFactory(data_handler[, tests])

A class for performing robustness tests on a given dataset.

StripAllPunctuation()

A class for stripping punctuation from text samples.

StripPunctuation()

A class for stripping punctuation to text samples.

SwapEntities()

A class for swapping entities in text samples.

TitleCase()

A class for transforming text samples to titlecase.

UpperCase()

A class for transforming text samples to uppercase.