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

怎么提取embedding呢? #14

Closed
XiangtaiKong opened this issue Sep 27, 2022 · 2 comments
Closed

怎么提取embedding呢? #14

XiangtaiKong opened this issue Sep 27, 2022 · 2 comments

Comments

@XiangtaiKong
Copy link

尊敬的作者:
您好!
我是涉足KG的一位菜鸟,认为您的这份工作具有非常非常重要的意义!
想请问一下,如果想获得不同KGE方法获得的embedding,请问需要怎样修改main.py呢?期待您的回复,不胜感激!

@Modberge
Copy link
Collaborator

您好,想要获取模型的embedding数据不需要更改main.py文件。每轮验证完成后,NeuralKG会在主目录下的'output'文件夹按照模型类别自动生成当前实验验证效果最好的checkpoint。它包含了实验的基本信息以及模型的embedding,您可以通过pytorch的load函数加载模型获取这些信息。

@XiangtaiKong
Copy link
Author

好的,明白了!谢谢您的回复和详细讲解!

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

2 participants