nju-websoft / OpenEA

A Benchmarking Study of Embedding-based Entity Alignment for Knowledge Graphs, VLDB 2020
GNU General Public License v3.0
517 stars 80 forks source link

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

Open skylie-xtj opened 2 years ago

skylie-xtj commented 2 years ago

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 commented 2 years ago

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!