class_docstr: Transforms the polarity of target by replacing its opinion words
  with antonyms provided by WordNet or adding the negation that
  pre-defined in our negative word list.
  
  Example::
  
      Original sentence: "BEST spicy tuna roll, great asian salad.
      (Target: spicy tuna roll)"
      Transformed sentence: "BAD spicy tuna roll, great asian salad."
docstr: Transform data sample to a list of Sample.
  
  :param ~textflint.ABSAsample sample: input ABSAsample
  :param int n: the number of transformation,
      in ABSA-specific transformations n=1
  :param str field:field name
  :return list: list of transformed ABSAsample
code: def _transform(self, sample, n=1, field="sentence", **kwargs):
      r"""
      Transform data sample to a list of Sample.
  
      :param ~textflint.ABSAsample sample: input ABSAsample
      :param int n: the number of transformation,
          in ABSA-specific transformations n=1
      :param str field:field name
      :return list: list of transformed ABSAsample
  
      """
      trans_samples = []
      self.terms = sample.terms
      self.sentence = sample.sentence.text
      self.words_list = sample.sentence.words
      self.term_list = sample.term_list
      if sample.trans_id is None:
          self.trans_id = [idx for idx in self.terms]
      else:
          self.trans_id = [sample.trans_id]
  
      for term_id in self.trans_id:
          trans_sample = sample.clone(sample)
          (
              trans_words,
              trans_polarity,
              trans_terms,
          ) = self._trans_aspect_polarity(term_id)
          trans_words = self._trans_conjunction(
              term_id, trans_words, trans_polarity
          )
          trans_sentence = self.get_sentence(trans_words, self.sentence)
          trans_sample.update_sentence(trans_sentence)
          trans_sample.update_terms(trans_terms)
          trans_sample.update_term_list(trans_sample)
          trans_sample.trans_id = term_id
          trans_samples.append(trans_sample)
  
      return trans_samples
  
file_path: textflint/textflint/generation/transformation/ABSA/rev_tgt.py
imports: from copy import deepcopy
  from .absa_transformation import ABSATransformation
label_desc: Use image node_id 3 for calling the RevTgt obj's underlying member method code with example usage: obj._transform(sample, n, field) and returns: trans_samples