class_docstr: ABSASample Class
class_docstr_tok: ["ABSASample","Class"]
docstr: Dump the legal data.
  
  :return dict: output of transformed data
docstr_tok: ["Dump","the","legal","data",".",":","return","dict",":","output","of","transformed","data"]
code: def dump(self):
      r"""
      Dump the legal data.
  
      :return dict: output of transformed data
  
      """
      self.update_term_list(self)
  
      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
              )
          )
  
      return {
          "sentence": self.sentence.text,
          "term_list": self.term_list,
          "contra": self.contra,
          "multi": self.multi,
          "id": self.id,
          "trans_id": self.trans_id,
          "sample_id": self.sample_id,
      }
  
imports: from .sample import Sample
  from ..field import TextField
  from ....common.utils.error import FlintError
label_desc: Use image node_id 5 for calling the ABSASample obj's underlying member method code with example usage: obj.dump() and returns: dict