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: :param dict data: The dict obj that contains data info
  :param ~BaseSample origin: Original sample obj
  :param int sample_id: the id of sample
  :param str mode: The sequence labeling mode for NER samples.
docstr_tok: [":","param","dict","data",":","The","dict","obj","that","contains","data","info",":","param","~BaseSample","origin",":","Original","sample","obj",":","param","int","sample_id",":","the","id","of","sample",":","param","str","mode",":","The","sequence","labeling","mode","for","NER","samples","."]
code: def __init__(self, data, origin=None, sample_id=None, mode="BIO"):
      r"""
      :param dict data: The dict obj that contains data info
      :param ~BaseSample origin: Original sample obj
      :param int sample_id: the id of sample
      :param str mode: The sequence labeling mode for NER samples.
      """
      self.mode = mode
      self.text = None
      self.tags = None
      self.entities = None
      super().__init__(data, origin=origin, sample_id=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 1 to create a new NERSample object from inherited base classes: Sample with example: obj = NERSample(data, origin, sample_id, mode)