class_docstr: WSCSample Class
class_docstr_tok: ["WSCSample","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
  
      """
      if not self.is_legal():
          raise ValueError(
              "noun and noun index do not match, "
              "pronoun and pronoun index do not match".format(
                  self.target
              )
          )
      return {
          "text": self.text.text,
          "target": self.target,
          "label": self.label,
          "index": self.index,
      }
  
imports: from copy import deepcopy
  import nltk
  import string
  from .sample import Sample
  from ..field import TextField
  from ....common.utils.error import FlintError
  from ....common.utils.list_op import normalize_scope
label_desc: Use image node_id 5 for calling the WSCSample obj's underlying member method code with example usage: obj.dump() and returns: dict