Exemplo n.º 1
0
 def __del__(self):
     """销毁各个对象指针"""
     familia.destroy_inference_engine(self._inference_engine)
     familia.destroy_tokenizer(self._tokenizer)
     if self._emb_file is not None:
         familia.destroy_twe(self._twe)
Exemplo n.º 2
0
 def __del__(self):
     """销毁TWE对象"""
     if familia is not None:
         familia.destroy_twe(self._twe)