code: def __init__(self):
      super(Ernie, self).__init__()
      res_dir = os.path.join(MODULE_HOME, "auto_punc")
      punc_vocab_file = os.path.join(
          res_dir, "assets", "punc_vocab.txt"
      )
      ckpt_dir = os.path.join(res_dir, "assets", "ckpt")
  
      self.punc_vocab = self._load_dict(punc_vocab_file)
      self.punc_list = list(self.punc_vocab.keys())
      self.model = ErnieForTokenClassification.from_pretrained(ckpt_dir)
      self.model.eval()
      self.tokenizer = ErnieTokenizer.from_pretrained("ernie-1.0")
  
file_path: PaddleHub/modules/text/punctuation_restoration/auto_punc/module.py
imports: import os
  import re
  from typing import List, Union
  import numpy
  import paddle
  from paddlehub.env import MODULE_HOME
  from paddlehub.module.module import moduleinfo, serving
  from paddlehub.utils.log import logger
  from paddlenlp.transformers import ErnieTokenizer, ErnieForTokenClassification
  from paddlenlp.data import Pad
label_desc: Use image node_id 1 to create a new Ernie object from inherited base classes: paddle.nn with example: obj = Ernie()