TextAugmentationSettings

Options & Configuration · AiDotNet.Augmentation

Text-specific augmentation settings with industry-standard defaults.

For Beginners

These settings control how text data is augmented. Defaults are based on best practices from nlpaug and TextAttack.

Constructors

Constructor Summary
TextAugmentationSettings()

Properties

Property Summary
bool EnableBackTranslation { get; set; } Gets or sets whether back-translation is enabled.
bool EnableRandomDeletion { get; set; } Gets or sets whether random deletion is enabled.
bool EnableRandomInsertion { get; set; } Gets or sets whether random insertion is enabled.
bool EnableRandomSwap { get; set; } Gets or sets whether random swap is enabled.
bool EnableSynonymReplacement { get; set; } Gets or sets whether synonym replacement is enabled.
double DeletionRate { get; set; } Gets or sets the fraction of words to delete.
double InsertionRate { get; set; } Gets or sets the fraction of words to insert.
double SynonymReplacementRate { get; set; } Gets or sets the fraction of words to replace with synonyms.
int NumSwaps { get; set; } Gets or sets the number of word swaps to perform.

Methods

Method Summary
IDictionary<string, object> GetConfiguration() Gets the configuration as a dictionary.