class_docstr: Base class for all the templates.
  Most of methods are abstract, with some exceptions to hold the common methods for all template, such as ``loss_ids``, ``save``, ``load``.
  
  Args:
      tokenizer (:obj:`PreTrainedTokenizer`): A tokenizer to appoint the vocabulary and the tokenization strategy.
      placeholder_mapping (:obj:`dict`): A place holder to represent the original input text.
class_docstr_tok: ["Base","class","for","all","the","templates",".","Most","of","methods","are","abstract",",","with","some","exceptions","to","hold","the","common","methods","for","all","template",",","such","as","``","loss_ids","``",",","``","save","``",",","``","load","``",".","Args",":","tokenizer","(",":","obj",":","`","PreTrainedTokenizer","`",")",":","A","tokenizer","to","appoint","the","vocabulary","and","the","tokenization","strategy",".","placeholder_mapping","(",":","obj",":","`","dict","`",")",":","A","place","holder","to","represent","the","original","input","text","."]
code: def __init__(
      self,
      tokenizer,
      text: Optional[str] = None,
      placeholder_mapping: dict = {
          "<text_a>": "text_a",
          "<text_b>": "text_b",
      },
  ):
      super().__init__()
  
      self.tokenizer = tokenizer
      self.placeholder_mapping = placeholder_mapping
      self._in_on_text_set = False
  
      self.mixed_token_start = "{"
      self.mixed_token_end = "}"
      self.text = text
  
imports: from abc import abstractmethod
  from typing import *
  import paddle
  from data_utils import InputExample
label_desc: Use image node_id 1 to create a new ErnieManualTemplate object from inherited base classes: paddle.nn with example: obj = ErnieManualTemplate(tokenizer, text, placeholder_mapping)