yongzhuo / Macropodus

自然语言处理工具Macropodus,基于Albert+BiLSTM+CRF深度学习网络架构,中文分词,词性标注,命名实体识别,新词发现,关键词,文本摘要,文本相似度,科学计算器,中文数字阿拉伯数字(罗马数字)转换,中文繁简转换,拼音转换。tookit(tool) of NLP,CWS(chinese word segnment),POS(Part-Of-Speech Tagging),NER(name entity recognition),Find(new words discovery),Keyword(keyword extraction),Summarize(text summarization),Sim(text similarity),Calculate(scientific calculator),Chi2num(chinese number to arabic number)

Home Page:https://blog.csdn.net/rensihui

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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