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

AttributeError: module 'openea' has no attribute 'kge_model' #31

Open
skylie-xtj opened this issue Nov 6, 2021 · 1 comment
Open

AttributeError: module 'openea' has no attribute 'kge_model' #31

skylie-xtj opened this issue Nov 6, 2021 · 1 comment

Comments

@skylie-xtj
Copy link

Dear author,

There is some errors when I run these codes:
import openea as oa

model = oa.kge_model.TransE
args = load_args("hyperparameter file folder")
kgs = read_kgs_from_folder("data folder")
model.set_args(args)
model.set_kgs(kgs)
model.init()
model.run()
model.test()
model.save()

AttributeError: module 'openea' has no attribute 'kge_model'

Looking for your reply! Thank you!

Best regards,
Xu.

@sunzequn
Copy link
Member

sunzequn commented Nov 7, 2021

Hi Xu,

Thanks for your interest in our work.

The code is only an example. You should make some necessary modifications, for example, replacing model = oa.kge_model.TransE with model = oa.approaches.MTransE.

I will revise this part. Thanks!

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