class_docstr: ABSASample Class
class_docstr_tok: ["ABSASample","Class"]
docstr: Tokenize the term list of ABSASample.
  
  :return list: terms in ABSASample
docstr_tok: ["Tokenize","the","term","list","of","ABSASample",".",":","return","list",":","terms","in","ABSASample"]
code: def tokenize_term_list(self):
      r"""
      Tokenize the term list of ABSASample.
  
      :return list: terms in ABSASample
  
      """
      terms = {}
      copy_sent = self.sentence.text
      term_list = self.term_list
  
      for term_id in term_list:
          if term_id not in terms:
              terms[term_id] = {}
          opinion_words = []
          opinion_position = []
          opinions = term_list[term_id]["opinion_words"]
          opinions_spans = term_list[term_id]["opinion_position"]
          polarity = term_list[term_id]["polarity"]
  
          for i in range(len(opinions)):
              position = opinions_spans[i]
              opinion_from = position[0]
              opinion_to = position[1]
              left = ABSASample.text_processor.tokenize(
                  copy_sent[:opinion_from].strip()
              )
              opinion = ABSASample.text_processor.tokenize(
                  copy_sent[opinion_from:opinion_to].strip()
              )
              opinion_words.append([" ".join(opinion)])
              opinion_position.append(
                  [len(left), len(left) + len(opinion)]
              )
  
          term_from = term_list[term_id]["from"]
          term_to = term_list[term_id]["to"]
          left = ABSASample.text_processor.tokenize(
              copy_sent[:term_from].strip()
          )
          aspect = ABSASample.text_processor.tokenize(
              copy_sent[term_from:term_to].strip()
          )
          terms[term_id]["term"] = term_list[term_id]["term"]
          terms[term_id]["from"] = len(left)
          terms[term_id]["to"] = len(left) + len(aspect)
          terms[term_id]["polarity"] = polarity
          terms[term_id]["opinion_words"] = opinion_words
          terms[term_id]["opinion_position"] = opinion_position
  
      return terms
  
imports: from .sample import Sample
  from ..field import TextField
  from ....common.utils.error import FlintError
label_desc: Use image node_id 7 for calling the ABSASample obj's underlying member method code with example usage: obj.tokenize_term_list() and returns: terms