class_docstr: Transforms the polarity of non-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: "BEST spicy tuna roll, not great asian salad."
docstr: Transform the polarity of a certain term.
  
  :param str term_id: term id
  :param list reverse_list: pre-defined reverse_list
  :param list exaggerate_list: pre-defined exaggerate_list
  :return: tokenized words and terms of transformed sentence
code: def _trans_term_polarity(
      self, term_id, reverse_list, exaggerate_list
  ):
      r"""
      Transform the polarity of a certain term.
  
      :param str term_id: term id
      :param list reverse_list: pre-defined reverse_list
      :param list exaggerate_list: pre-defined exaggerate_list
      :return: tokenized words and terms of transformed sentence
  
      """
      trans_terms = deepcopy(self.terms)
      other_id_list = [idx for idx in trans_terms]
      other_id_list.remove(term_id)
      trans_words = self.words_list
      aspect_term = trans_terms[term_id]
      trans_opinion_reverse = []
      trans_opinion_exaggerate = []
  
      if len(reverse_list) != 0:
          trans_words, trans_opinion_reverse = self.reverse(
              trans_words, reverse_list
          )
          trans_words = self._trans_conjunction(
              aspect_term, trans_words
          )
      if len(exaggerate_list) != 0:
          trans_words, trans_opinion_exaggerate = self.exaggerate(
              trans_words, exaggerate_list
          )
      trans_position = reverse_list + exaggerate_list
      trans_opinion = trans_opinion_reverse + trans_opinion_exaggerate
  
      for idx in other_id_list:
          if trans_terms[idx]["polarity"] == "positive":
              trans_terms[idx]["polarity"] = "negative"
          elif trans_terms[idx]["polarity"] == "negative":
              trans_terms[idx]["polarity"] = "positive"
          else:
              trans_terms[idx]["polarity"] = "neutral"
  
      trans_words, trans_terms = self.update_sentence_terms(
          trans_words, trans_terms, trans_opinion, trans_position
      )
  
      return trans_words, trans_terms
  
file_path: textflint/textflint/generation/transformation/ABSA/rev_non.py
imports: from copy import deepcopy
  from ...transformation.ABSA.absa_transformation import ABSATransformation
label_desc: Use image node_id 5 for calling the RevNon obj's underlying member method code with example usage: obj._trans_term_polarity(term_id, reverse_list, exaggerate_list) and returns: trans_words,  trans_terms