class_docstr: Augmenter that performs a given action at the word level.
  Valid actions are defined below as methods
class_docstr_tok: ["Augmenter","that","performs","a","given","action","at","the","word","level",".","Valid","actions","are","defined","below","as","methods"]
code: def __init__(
      self,
      action: str,
      min_char: int,
      aug_word_min: int,
      aug_word_max: int,
      aug_word_p: float,
      priority_words: Optional[List[str]],
  ):
      assert (
          min_char >= 2
      ), "Expected min_char to be greater than or equal to 2"
  
      super().__init__(
          action=action,
          aug_min=aug_word_min,
          aug_max=aug_word_max,
          aug_p=aug_word_p,
      )
      self.min_char = min_char
      self.priority_words = (
          set(priority_words)
          if priority_words is not None
          else priority_words
      )
  
file_path: AugLy/augly/text/augmenters/words_augmenter.py
imports: import random
  from typing import List, Optional
  from augly.text.augmenters.utils import detokenize, get_aug_idxes, tokenize
  from augly.utils.libsndfile import install_libsndfile
  from nlpaug.augmenter.word import WordAugmenter
  from nlpaug.util import Method
label_desc: Use image node_id 1 to create a new WordsAugmenter object from inherited base classes: WordAugmenter with example: obj = WordsAugmenter(action, min_char, aug_word_min, aug_word_max, aug_word_p, priority_words)