class_docstr: NER Sample class to hold the necessary info and provide atomic operations.
class_docstr_tok: ["NER","Sample","class","to","hold","the","necessary","info","and","provide","atomic","operations","."]
docstr: Convert sample info to input data json format.
  
  :return json: the dict of sentences and labels
docstr_tok: ["Convert","sample","info","to","input","data","json","format",".",":","return","json",":","the","dict","of","sentences","and","labels"]
code: def dump(self):
      r"""
      Convert sample info to input data json format.
  
      :return json: the dict of sentences and labels
  
      """
      if not self.is_legal():
          raise ValueError(
              "A failed transformation which leads to "
              "mismatch between input and output."
          )
  
      return {
          "x": self.text.words,
          "y": self.tags.field_value,
          "sample_id": self.sample_id,
      }
  
imports: from .sample import Sample
  from ..field import ListField, TextField
  from ....common.utils.list_op import get_align_seq
label_desc: Use image node_id 6 for calling the NERSample obj's underlying member method code with example usage: obj.dump() and returns: dict