class_docstr: Our segmentation rules are based on ctb6.
  
  the input x can be a list or a sentence
  the input y is segmentation label include:B,M,E,S
  the y also can automatic generation,if you want automatic generation
      you must input an empty list and x must each word in x is separated by
      a space or split into each element of the list
  Note that punctuation should be separated into a single word
  
  Example::
  
      1. input {'x':'小明好想送Jo圣诞礼物', 'y' = ['B', 'E', 'B', 'E', 'S', 'B',
          'E', 'B', 'E', 'B', 'E']}
      2. input {'x':['小明','好想送Jo圣诞礼物'], 'y' = ['B', 'E', 'B', 'E', 'S',
          'B', 'E', 'B', 'E', 'B', 'E']}
      3. input {'x':'小明 好想 送 Jo 圣诞 礼物', 'y' = []}
      4. input {'x':['小明', '好想', '送', 'Jo', '圣诞', '礼物'], 'y' = []}
class_docstr_tok: ["Our","segmentation","rules","are","based","on","ctb6",".","the","input","x","can","be","a","list","or","a","sentence","the","input","y","is","segmentation","label","include",":","B",",","M",",","E",",","S","the","y","also","can","automatic","generation",",","if","you","want","automatic","generation","you","must","input","an","empty","list","and","x","must","each","word","in","x","is","separated","by","a","space","or","split","into","each","element","of","the","list","Note","that","punctuation","should","be","separated","into","a","single","word","Example",":",":","1.","input","{","'","x","'",":","'\u5c0f\u660e\u597d\u60f3\u9001Jo\u5723\u8bde\u793c\u7269","'",",","'","y","'","=","[","'","B","'",",","'","E","'",",","'","B","'",",","'","E","'",",","'S","'",",","'","B","'",",","'","E","'",",","'","B","'",",","'","E","'",",","'","B","'",",","'","E","'","]","}","2.","input","{","'","x","'",":","[","'\u5c0f\u660e","'",",","'\u597d\u60f3\u9001Jo\u5723\u8bde\u793c\u7269","'","]",",","'","y","'","=","[","'","B","'",",","'","E","'",",","'","B","'",",","'","E","'",",","'S","'",",","'","B","'",",","'","E","'",",","'","B","'",",","'","E","'",",","'","B","'",",","'","E","'","]","}","3.","input","{","'","x","'",":","'\u5c0f\u660e","\u597d\u60f3","\u9001","Jo","\u5723\u8bde","\u793c\u7269","'",",","'","y","'","=","[","]","}","4.","input","{","'","x","'",":","[","'\u5c0f\u660e","'",",","'\u597d\u60f3","'",",","'","\u9001","'",",","'Jo","'",",","'\u5723\u8bde","'",",","'\u793c\u7269","'","]",",","'","y","'","=","[","]","}"]
docstr: Convert data dict which contains essential information to CWSSample.
  
  :param dict data: The dict obj that contains data info
docstr_tok: ["Convert","data","dict","which","contains","essential","information","to","CWSSample",".",":","param","dict","data",":","The","dict","obj","that","contains","data","info"]
code: def load(self, data):
      r"""
      Convert data dict which contains essential information to CWSSample.
  
      :param dict data: The dict obj that contains data info
      """
      self.x = CnTextField(data["x"])
      assert isinstance(data["y"], list)
      self.y = ListField(data["y"])
  
imports: from .sample import Sample
  from ..field.cn_text_field import CnTextField
  from ..field import ListField
  from ....common.settings import ORIGIN, MODIFIED_MASK
  from ....common.utils.list_op import *
label_desc: Use image node_id 5 for calling the CWSSample obj's underlying member method code with example usage: obj.load(data) without return types