Sujit-O / pykg2vec

Python library for knowledge graph embedding and representation learning.
MIT License
603 stars 109 forks source link

cannot import name 'KnowledgeGraph' #79

Closed iamlxb3 closed 4 years ago

iamlxb3 commented 5 years ago

When I run the train.py example:

Traceback (most recent call last): File "train.py", line 1, in from pykg2vec.config.global_config import KnowledgeGraph ImportError: cannot import name 'KnowledgeGraph'

kaihuchen commented 4 years ago

@iamlxb3 FYI, it seems that README.md is outdated, and you should go with https://github.com/Sujit-O/pykg2vec/blob/master/examples/train.py instead

louisccc commented 4 years ago

Hi @kaihuchen, you are right, thanks for pointing out! :)