MultiHopKG icon indicating copy to clipboard operation
MultiHopKG copied to clipboard

AttributeError: 'KnowledgeGraph' object has no attribute 'entity2bucketid'

Open BlackLucy opened this issue 4 years ago • 1 comments

pn.py L236 entity2bucketid = kg.entity2bucketid[e.tolist()]

There is an error 【AttributeError: 'KnowledgeGraph' object has no attribute 'entity2bucketid'】 in the 236th line of pn.py, how can I solve it?

BlackLucy avatar May 26 '21 07:05 BlackLucy

Ensure you have the flag "--use_action_space_bucketing" active while running the command, this will calculate the entity2bucket in the KnowledgeGraph class.

HernandezEduin avatar May 04 '25 17:05 HernandezEduin