class_docstr: Coref Sample
class_docstr_tok: ["Coref","Sample"]
docstr: Dump a CorefSample to a conll-dict.
  
  :param bool with_check: whether the dumped conll-dict should be checked
  :return dict ret_dict: a conll-style dict
docstr_tok: ["Dump","a","CorefSample","to","a","conll-dict",".",":","param","bool","with_check",":","whether","the","dumped","conll-dict","should","be","checked",":","return","dict","ret_dict",":","a","conll-style","dict"]
code: def dump(self, with_check=True):
      r"""
      Dump a CorefSample to a conll-dict.
  
      :param bool with_check: whether the dumped conll-dict should be checked
      :return dict ret_dict: a conll-style dict
  
      """
      ret_dict = dict()
      ret_dict["doc_key"] = self.doc_key
      ret_dict["sentences"] = self.doc2sens(self.x.words, self.sen_map)
      ret_dict["speakers"] = self.doc2sens(
          self.doc_sp.words, self.sen_map
      )
      ret_dict["clusters"] = self.clusters.field_value
      ret_dict["constituents"] = self.constituents.field_value
      ret_dict["ner"] = self.ner.field_value
      # append for identify sample
      ret_dict["sample_id"] = self.sample_id
      if with_check:
          assert len(self.x.words) == len(self.x.mask)
          assert len(self.doc_sp.words) == len(self.doc_sp.mask)
          assert len(self.x.words) == len(self.doc_sp.words)
          self.check_data(ret_dict)
      return ret_dict
  
imports: from ....common.settings import ORIGIN, TASK_MASK
  from ....common.utils.fp_utils import *
  from ....common.utils.shift_utils import *
  from .sample import Sample
  from ..field import ListField, TextField
label_desc: Use image node_id 6 for calling the CorefSample obj's underlying member method code with example usage: obj.dump(with_check) and returns: ret_dict