class_docstr: CNNER Sample class to hold the necessary info and provide atomic operations.
  the input x can be a sentence or a list of single words,
  while y being a list of tags aligned to each word in x.
  
  Example::
      1. {'x':'上海浦东开发与法制建设同步', 'y':'['B-GPE','E-GPE','B-GPE','E-GPE','O','O','O','O','O','O','O','O','O']'}
  
      2. {
          'x':['上','海','浦','东','开','发','与','法','制','建','设','同','步'],
          'y':['B-GPE','E-GPE','B-GPE',E'-GPE','O','O','O','O','O','O','O','O','O']
         }
class_docstr_tok: ["CNNER","Sample","class","to","hold","the","necessary","info","and","provide","atomic","operations",".","the","input","x","can","be","a","sentence","or","a","list","of","single","words",",","while","y","being","a","list","of","tags","aligned","to","each","word","in","x",".","Example",":",":","1",".","{","'","x","'",":","'\u4e0a\u6d77\u6d66\u4e1c\u5f00\u53d1\u4e0e\u6cd5\u5236\u5efa\u8bbe\u540c\u6b65","'",",","'","y","'",":","'","[","'","B-GPE","'",",","'","E-GPE","'",",","'","B-GPE","'",",","'","E-GPE","'",",","'","O","'",",","'","O","'",",","'","O","'",",","'","O","'",",","'","O","'",",","'","O","'",",","'","O","'",",","'","O","'",",","'","O","'","]","'","}","2",".","{","'","x","'",":","[","'","\u4e0a","'",",","'","\u6d77","'",",","'","\u6d66","'",",","'","\u4e1c","'",",","'","\u5f00","'",",","'","\u53d1","'",",","'","\u4e0e","'",",","'","\u6cd5","'",",","'","\u5236","'",",","'","\u5efa","'",",","'","\u8bbe","'",",","'","\u540c","'",",","'","\u6b65","'","]",",","'","y","'",":","[","'","B-GPE","'",",","'","E-GPE","'",",","'","B-GPE","'",",","E'-GPE","'",",","'","O","'",",","'","O","'",",","'","O","'",",","'","O","'",",","'","O","'",",","'","O","'",",","'","O","'",",","'","O","'",",","'","O","'","]","}"]
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="BMOES"):
      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)
  
file_path: textflint/textflint/input/component/sample/nercn_sample.py
imports: from .cnsample import CnSample
  from ..field import ListField, CnTextField
  from ....common.utils.list_op import get_align_seq
label_desc: Use image node_id 1 to create a new NERCnSample object from inherited base classes: CnSample with example: obj = NERCnSample(data, origin, sample_id, mode)