class_docstr: Generate extra text for AbsaAddDiff,
  and dataset type is assigned in configure.
docstr: Get the extra sentence from phrases text.
  
  :param dict term_list: term list
  :param str term_id: term id
  :param list phrases: phrase list
  :return list: extra sentences
docstr_tok: ["Get","the","extra","sentence","from","phrases","text",".",":","param","dict","term_list",":","term","list",":","param","str","term_id",":","term","id",":","param","list","phrases",":","phrase","list",":","return","list",":","extra","sentences"]
code: def get_extra_sentence(term_list, term_id, phrases):
      r"""
      Get the extra sentence from phrases text.
  
      :param dict term_list: term list
      :param str term_id: term id
      :param list phrases: phrase list
      :return list: extra sentences
      """
      phrases_list = []
      other_terms = []
      extra_sentence = []
      term = term_list[term_id]["term"]
      opinions = term_list[term_id]["opinion_words"]
      for other_id in term_list:
          if other_id != term_id:
              other_terms.append(term_list[other_id]["term"])
      for phrase in phrases:
          opinion_exist = True
          phrase_ = "".join(
              [token.text_with_ws for token in list(phrase)]
          ).strip()
          for opinion_word in opinions:
              if opinion_word not in phrase_:
                  opinion_exist = False
          if term in phrase_ and opinion_exist is True:
              phrases_list.append(phrase_)
      for phrase in phrases_list:
          overlap = False
          for other_term in other_terms:
              if other_term in phrase:
                  overlap = True
                  break
          if not overlap:
              extra_sentence.append(phrase)
      extra_sentence = sorted(extra_sentence, key=len)
      return extra_sentence
  
file_path: textflint/textflint/generation/generator/absa_generator.py
imports: from tqdm import tqdm
  from .generator import Generator
  from ...common.utils.logger import logger
  from ...input.component.sample import ABSASample
  from ..transformation.transformation import Transformation
  from ...common.utils.load import absa_dict_loader
  from ...common.utils.install import download_if_needed
  from ...common.settings import TASK_TRANSFORMATION_PATH, ALLOWED_TRANSFORMATIONS, TASK_SUBPOPULATION_PATH, ALLOWED_SUBPOPULATIONS, ABSA_TRAIN_RESTAURANT_PATH, ABSA_TRAIN_LAPTOP_PATH
label_desc: Use image node_id 2 for calling the ABSAGenerator obj's underlying member method code with example usage: obj.get_extra_sentence(term_list, term_id, phrases) and returns: extra_sentence