class_docstr: ABSASample Class
class_docstr_tok: ["ABSASample","Class"]
docstr: Load the legal data and convert it into SASample.
  
  :param dict data: data name
docstr_tok: ["Load","the","legal","data","and","convert","it","into","SASample",".",":","param","dict","data",":","data","name"]
code: def load(self, data):
      r"""
      Load the legal data and convert it into SASample.
  
      :param dict data: data name
  
      """
      self.data = data
      self.sentence = TextField(data["sentence"])
      self.term_list = data["term_list"]
      self.terms = self.tokenize_term_list()
  
      if not self.is_legal():
          raise ValueError(
              "Term list {0} is not legal, aspect words or "
              "opinion words are in the wrong position.".format(
                  self.term_list
              )
          )
  
      self.contra = None
      self.multi = None
      self.id = None
  
      if "contra" in data:
          self.contra = data["contra"]
      if "multi" in data:
          self.multi = data["multi"]
      if "id" in data:
          self.id = data["id"]
      if self.trans_id is None and "trans_id" in data:
          self.trans_id = data["trans_id"]
  
imports: from .sample import Sample
  from ..field import TextField
  from ....common.utils.error import FlintError
label_desc: Use image node_id 4 for calling the ABSASample obj's underlying member method code with example usage: obj.load(data) without return types