class_docstr: POS Sample class to hold the necessary info and provide atomic operations.
docstr: Convert sample info to input data json format.
docstr_tok: ["Convert","sample","info","to","input","data","json","format","."]
code: def dump(self):
      r"""
      Convert sample info to input data json format.
  
      """
      if not self.is_legal():
          raise ValueError(
              "Data sample {0} is not legal, "
              "pos tags mismatch words.".format(self)
          )
  
      return {
          "x": self.x.words,
          "y": self.y.field_value,
          "sample_id": self.sample_id,
      }
  
file_path: textflint/textflint/input/component/sample/pos_sample.py
imports: from .sample import Sample
  from ..field import ListField, TextField
label_desc: Use image node_id 11 for calling the POSSample obj's underlying member method code with example usage: obj.dump() and returns: dict