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","."]
code: def _get_add_sample(
      self, field, tokens, sample, split_by_space=False
  ):
      root_id_list = self._parse_sentence(
          tokens, split_by_space=split_by_space
      )
      if root_id_list:
          check_sentence = self._check_sentence(tokens)
          if check_sentence:
              root_id = root_id_list[0]
              add_sample = self._add_sample(
                  field, tokens, root_id, sample
              )
              return add_sample
          else:
              return []
      else:
          return []
  
file_path: textflint/textflint/generation/transformation/UT/reverse_neg.py
imports: from ..transformation import Transformation
label_desc: Use image node_id 8 for calling the ReverseNeg obj's underlying member method code with example usage: obj._get_add_sample(field, tokens, sample, split_by_space) and returns: list, add_sample, list