class_docstr: Base Chinese Sample class to hold the necessary info and provide atomic operations
class_docstr_tok: ["Base","Chinese","Sample","class","to","hold","the","necessary","info","and","provide","atomic","operations"]
docstr: Fully replace single field and return new sample.
  Notice: Not suggest use this API as it will set mask values of
  TextField to MODIFIED_MASK.
  
  :param str field: field str
  :param field_value: field_type
  :param list field_mask: indicate mask value of field
  :return: Modified Sample
docstr_tok: ["Fully","replace","single","field","and","return","new","sample",".","Notice",":","Not","suggest","use","this","API","as","it","will","set","mask","values","of","TextField","to","MODIFIED_MASK",".",":","param","str","field",":","field","str",":","param","field_value",":","field_type",":","param","list","field_mask",":","indicate","mask","value","of","field",":","return",":","Modified","Sample"]
code: def replace_field(self, field, field_value, field_mask=None):
      r"""
      Fully replace single field and return new sample.
      Notice: Not suggest use this API as it will set mask values of
      TextField to MODIFIED_MASK.
  
      :param str field: field str
      :param field_value: field_type
      :param list field_mask: indicate mask value of field
      :return: Modified Sample
  
      """
      fields_mask = [field_mask] if field_mask else None
  
      return self.replace_fields([field], [field_value], fields_mask)
  
imports: import copy
  from abc import ABC, abstractmethod
  from textflint.input.component.field.list_field import ListField
  from ..field import CnTextField
  from ....common.settings import MODIFIED_MASK
  from ....common.preprocess.cn_processor import CnProcessor
label_desc: Use image node_id 13 for calling the CnSample obj's underlying member method code with example usage: obj.replace_field(field, field_value, field_mask) and returns: self