class_docstr: Augmenter that replaces letters with similar mappings
code: def __init__(
      self,
      min_char: int,
      aug_char_min: int,
      aug_char_max: int,
      aug_char_p: float,
      aug_word_min: int,
      aug_word_max: int,
      aug_word_p: float,
      mapping_path: Optional[str],
      priority_words: Optional[List[str]],
  ):
      validate_augmenter_params(
          aug_char_min,
          aug_char_max,
          aug_char_p,
          aug_word_min,
          aug_word_max,
          aug_word_p,
      )
  
      super().__init__(
          action=Action.SUBSTITUTE,
          min_char=min_char,
          aug_char_min=aug_char_min,
          aug_char_max=aug_char_max,
          aug_char_p=aug_char_p,
          aug_word_min=aug_word_min,
          aug_word_max=aug_word_max,
          aug_word_p=aug_word_p,
      )
  
      self.letter_mapping = self.get_mapping(mapping_path)
      self.priority_words = (
          set(priority_words)
          if priority_words is not None
          else priority_words
      )
  
file_path: AugLy/augly/text/augmenters/letter_replacement.py
imports: import json
  from typing import List, Optional
  from augly.text.augmenters.utils import get_aug_idxes, LETTER_CHAR_MAPPING, rejoin_words_and_whitespace, split_words_on_whitespace, validate_augmenter_params
  from augly.utils import pathmgr
  from augly.utils.libsndfile import install_libsndfile
  from nlpaug.augmenter.char import CharAugmenter
  from nlpaug.util import Action, Method
label_desc: Use image node_id 1 to create a new LetterReplacementAugmenter object from inherited base classes: CharAugmenter with example: obj = LetterReplacementAugmenter(min_char, aug_char_min, aug_char_max, aug_char_p, aug_word_min, aug_word_max, aug_word_p, mapping_path, priority_words)