Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关系网络无论怎么弄,都返回空的{} #43

Open
jiandam55 opened this issue Jan 6, 2023 · 0 comments
Open

关系网络无论怎么弄,都返回空的{} #43

jiandam55 opened this issue Jan 6, 2023 · 0 comments

Comments

@jiandam55
Copy link

我已经仔细查看过本库的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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant