RandomDeletion<T>

Models & Types · AiDotNet.Augmentation.Text

Randomly deletes words from text.

Inheritance: AugmentationBase<T, string[]> → TextAugmenterBase<T> → RandomDeletion<T>

For Beginners

Random deletion removes some words from text, simulating how people often skip words when speaking quickly or how text might have missing words in noisy transcriptions.

How It Works

When to use:

  • Text classification where exact wording isn’t critical
  • Training robust models for noisy/incomplete text
  • Simulating transcription errors

Constructors

Constructor Summary
RandomDeletion(double deletionProbability, int minWordsToKeep, double probability, string languageCode) Creates a new random deletion augmentation.

Properties

Property Summary
double DeletionProbability { get; } Gets the probability of deleting each word.
int MinWordsToKeep { get; } Gets the minimum number of words to keep.

Methods

Method Summary
IDictionary<string, object> GetParameters()