class_docstr: Word replace transformation to implement normal word replace functions.
class_docstr_tok: ["Word","replace","transformation","to","implement","normal","word","replace","functions","."]
docstr: Skip the tokens in stop words list or punctuation list.
  
  :param list tokens: the list of tokens
  :param list mask: the list of mask
          Indicates whether each word is allowed to be substituted.
          ORIGIN is allowed, while TASK_MASK and MODIFIED_MASK is not.
  :return list: List of possible substituted token index.
docstr_tok: ["Skip","the","tokens","in","stop","words","list","or","punctuation","list",".",":","param","list","tokens",":","the","list","of","tokens",":","param","list","mask",":","the","list","of","mask","Indicates","whether","each","word","is","allowed","to","be","substituted",".","ORIGIN","is","allowed",",","while","TASK_MASK","and","MODIFIED_MASK","is","not",".",":","return","list",":","List","of","possible","substituted","token","index","."]
code: def pre_skip_aug(self, tokens, mask):
      r"""
      Skip the tokens in stop words list or punctuation list.
  
      :param list tokens: the list of tokens
      :param list mask: the list of mask
              Indicates whether each word is allowed to be substituted.
              ORIGIN is allowed, while TASK_MASK and MODIFIED_MASK is not.
      :return list: List of possible substituted token index.
  
      """
      assert len(tokens) == len(mask)
      results = []
  
      for token_idx, token in enumerate(tokens):
          # skip punctuation
          if token in string.punctuation:
              continue
          # skip stopwords by list
          if self.is_stop_words(token):
              continue
          if mask[token_idx] != ORIGIN:
              continue
  
          results.append(token_idx)
  
      return results
  
file_path: textflint/textflint/generation/transformation/word_substitute.py
imports: import string
  from abc import abstractmethod
  from ..transformation import Transformation
  from ...common.settings import STOP_WORDS, ORIGIN
  from ...common.utils.list_op import trade_off_sub_words
label_desc: Use image node_id 7 for calling the WordSubstitute obj's underlying member method code with example usage: obj.pre_skip_aug(tokens, mask) and returns: results