class_docstr: Transforms an affirmative sentence into a negative sentence, or vice versa.
  Each sample generate one transformed sample at most.
class_docstr_tok: ["Transforms","an","affirmative","sentence","into","a","negative","sentence",",","or","vice","versa",".","Each","sample","generate","one","transformed","sample","at","most","."]
docstr: Check positive or negative
docstr_tok: ["Check","positive","or","negative"]
code: def _check_sentence(tokens):
      """
      Check positive or negative
  
      """
      if len(tokens) < 3:
          return False
      if "?" in tokens:
          return False
      if tokens[0].lower() in [
          "are",
          "is",
          "be",
          "am",
          "was",
          "were",
          "how",
          "why",
          "what",
          "where",
          "who",
          "when",
          "can",
          "do",
          "did",
          "does",
          "could",
          "should",
          "would",
          "will",
          "shall",
          "thank",
          "thanks",
      ]:
          return False
      else:
          return True
  
file_path: textflint/textflint/generation/transformation/UT/reverse_neg.py
imports: from ..transformation import Transformation
label_desc: Use image node_id 5 for calling the ReverseNeg obj's underlying member method code with example usage: obj._check_sentence(tokens) and returns: False, False, False, True