-
Notifications
You must be signed in to change notification settings - Fork 337
Open
Description
我已经仔细查看过本库的README和之前的Issues,没有发现解决方案。
我完整运行了提供的以下关系网络示例函数,但print都是{},其它函数如情感分析、分句分词等都正常
def entity_network():
print("\nentity network")
# 在现有实体库的基础上随时新增,比如从新词发现中得到的漏网之鱼
ht.add_new_entity("武磊", "颜骏凌", "球员")
docs = ["武磊和颜骏凌是球员",
"武磊和郜林都是国内顶尖前锋"]
G = ht.build_entity_graph(docs)
print(dict(G.edges.items()))
G = ht.build_entity_graph(docs, used_types=["球员"])
print(dict(G.edges.items()))
操作系统:linux
python版本:3.6.8
HarvestText版本:V0.8
Metadata
Metadata
Assignees
Labels
No labels