def save_dict(self,outpath='./data/dictionary/'):
pd.to_pickle(self.word_index, outpath + 'word_index.pkl')
pd.to_pickle(self.index_word, outpath + 'index_word.pkl')
if self.mode!='word':
pd.to_pickle(self.char_index,outpath+'char_index.pkl')
pd.to_pickle(self.index_char,outpath+'index_char.pkl')
data_manager.py 文件源码
python
阅读 32
收藏 0
点赞 0
评论 0
评论列表
文章目录