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: Dependency Parsing
docstr_tok: ["Dependency","Parsing"]
code: def _parse_sentence(self, tokens, split_by_space=False):
      """
      Dependency Parsing
      """
      sentence = " ".join(x for x in tokens)
      sentence_tokens = self.processor.sentence_tokenize(sentence)
      root_id_list = []
  
      parse_tokens = self.processor.get_dep_parser(
          sentence_tokens[0], split_by_space=split_by_space
      )
  
      for i, token in enumerate(parse_tokens):
          if len(token) < 4:
              continue
          if token[3] in ["cop", "ROOT", "aux"]:
              root_id_list.append(i)
  
      return root_id_list
  
file_path: textflint/textflint/generation/transformation/UT/reverse_neg.py
imports: from ..transformation import Transformation
label_desc: Use image node_id 6 for calling the ReverseNeg obj's underlying member method code with example usage: obj._parse_sentence(tokens, split_by_space) and returns: root_id_list