class_docstr: WSDSample Class
class_docstr_tok: ["WSDSample","Class"]
docstr: Load the legal data and convert it into WSDSample.
  
  :param dict data: data name
docstr_tok: ["Load","the","legal","data","and","convert","it","into","WSDSample",".",":","param","dict","data",":","data","name"]
code: def load(self, data):
      r"""
      Load the legal data and convert it into WSDSample.
  
      :param dict data: data name
      """
      self.sentence = TextField(data["sentence"])
      self.lemma = ListField(data["lemma"])
      self.pos = ListField(data["pos"])
      self.instance = ListField(data["instance"])
      self.sentence_id = TextField(data["sentence_id"])
      self.source = TextField(data["source"])
      if not self.is_legal():
          raise ValueError("Data is not legal to load")
      # set mask
      for key, start, end, word, _ in self.instance.field_value:
          for i in range(start, end):
              self.sentence.set_mask(i, TASK_MASK)
  
imports: from .sample import Sample
  from ..field import TextField, ListField
  import json
  from ....common.settings import TASK_MASK, PUNC
  import nltk
label_desc: Use image node_id 7 for calling the WSDSample obj's underlying member method code with example usage: obj.load(data) without return types