class_docstr: Augments words by swapping characters out for other characters.
class_docstr_tok: ["Augments","words","by","swapping","characters","out","for","other","characters","."]
code: def __init__(self, **kwargs):
      from textattack.transformations import (
          CompositeTransformation,
          WordSwapNeighboringCharacterSwap,
          WordSwapRandomCharacterDeletion,
          WordSwapRandomCharacterInsertion,
          WordSwapRandomCharacterSubstitution,
      )
  
      transformation = CompositeTransformation(
          [
              # (1) Swap: Swap two adjacent letters in the word.
              WordSwapNeighboringCharacterSwap(),
              # (2) Substitution: Substitute a letter in the word with a random letter.
              WordSwapRandomCharacterSubstitution(),
              # (3) Deletion: Delete a random letter from the word.
              WordSwapRandomCharacterDeletion(),
              # (4) Insertion: Insert a random letter in the word.
              WordSwapRandomCharacterInsertion(),
          ]
      )
      super().__init__(
          transformation, constraints=DEFAULT_CONSTRAINTS, **kwargs
      )
  
imports: import random
  from textattack.constraints.pre_transformation import RepeatModification, StopwordModification
  from textattack.constraints.semantics.sentence_encoders import UniversalSentenceEncoder
  from .None import Augmenter
label_desc: Use image node_id 1 to create a new CharSwapAugmenter object from inherited base classes: Augmenter with example: obj = CharSwapAugmenter()