class_docstr: Augmenter that replaces words based on a given mapping
class_docstr_tok: ["Augmenter","that","replaces","words","based","on","a","given","mapping"]
code: def augment(self, texts: Union[str, List[str]]) -> List[str]:
      texts_list = [texts] if isinstance(texts, str) else texts
      return [self.substitute_contractions(text) for text in texts_list]
  
file_path: AugLy/augly/text/augmenters/contraction.py
imports: import json
  from typing import Any, Dict, List, Optional, Union
  import numpy
  from augly.text.augmenters.utils import detokenize, tokenize
  from augly.utils import pathmgr
label_desc: Use image node_id 4 for calling the ContractionAugmenter obj's underlying member method code with example usage: obj.augment(texts) and returns: unknown