textattack.datasets.helpers package

Dataset Helpers

Ted Multi TranslationDataset Class

class textattack.datasets.helpers.ted_multi.TedMultiTranslationDataset(source_lang='en', target_lang='de', split='test')[source]

Bases: textattack.datasets.huggingface_dataset.HuggingFaceDataset

Loads examples from the Ted Talk translation dataset using the datasets package.

dataset source: http://www.cs.jhu.edu/~kevinduh/a/multitarget-tedtalks/