import pickle
vec_path = "entity_vec.pkl"
with open(vec_path, 'wb') as fw:
pickle.dump(vec_dic, fw)
with open(vec_path, 'rb') as fr:
vec_dic = pickle.load(fr)
print(vec_dic["网络管理系统"][:5])
## output
[-0.34241222 0.50312969 -0.20391559 0.0498893 0.21500751]
pickle使用
最新推荐文章于 2023-05-12 19:24:55 发布