AttributeError: module 'macropodus' has no attribute 'postag'
clmtulip opened this issue · comments
我下载并把tag_albert_people_1998覆盖到安装目录macropodus/data/model了。
但还是无法使用macropodus.postag,是什么原因呢?
AttributeError: module 'macropodus' has no attribute 'postag'
import os
# 默认使用词向量缓存加载
os.environ["macropodus_use_w2v_cache"] = "1"
# 默认使用词典缓存加载
os.environ["macropodus_use_seg_cache"] = "1"
# 默认不加载深度学习(dl)模型 macropodus_use_dl = 0
os.environ["macropodus_use_dl"] = "1"
import macropodus