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: Parse data into sample field value.
  :param dict data: rare data input.
docstr_tok: ["Parse","data","into","sample","field","value",".",":","param","dict","data",":","rare","data","input","."]
code: def load(self, data):
      r"""
      Parse data into sample field value.
      :param dict data: rare data input.
  
      """
      self.text = CnTextField(data["x"])
      tags = data["y"]
      self.tags = ListField(tags)
  
      # set mask to prevent UT transform modify entity word.
      if self.mode == "BMOES":
          self.entities = self.find_entities_BMOES(
              self.text.tokens, self.tags
          )
  
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 5 for calling the NERCnSample obj's underlying member method code with example usage: obj.load(data) without return types