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 other opinions.
  
  :param str term_id: term id
  :return: tokenized words and terms of transformed sentence
code: def _trans_other_polarity(self, term_id):
      r"""
      Transform the polarity of other opinions.
  
      :param str term_id: term id
      :return: tokenized words and terms of transformed sentence
  
      """
      terms = self.terms
      aspect_term = terms[term_id]
      aspect_polarity = aspect_term["polarity"]
      other_id_list = [idx for idx in terms]
      other_id_list.remove(term_id)
      reverse_list = []
      exaggerate_list = []
      non_overlap_opinion = []
  
      for other_index, other_id in enumerate(other_id_list):
          other_term = terms[other_id]
          other_opinion = terms[other_id]["opinion_position"]
          term_polarity = other_term["polarity"]
  
          for opinion in other_opinion:
              if opinion not in non_overlap_opinion:
                  non_overlap_opinion.append(opinion)
                  if (
                      aspect_polarity
                      == term_polarity
                      in ["positive", "negative"]
                  ):
                      reverse_list.append(opinion)
                  else:
                      exaggerate_list.append(opinion)
          if len(non_overlap_opinion) == 0:
              continue
  
      trans_words, trans_terms = self._trans_term_polarity(
          term_id, reverse_list, exaggerate_list
      )
  
      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 4 for calling the RevNon obj's underlying member method code with example usage: obj._trans_other_polarity(term_id) and returns: trans_words,  trans_terms