DeepGraphLearning / graphvite

GraphVite: A General and High-performance Graph Embedding System
https://graphvite.io
Apache License 2.0
1.22k stars 151 forks source link

entity_prediction error message can't recognize entities or relation #50

Closed gustavopuma closed 4 years ago

gustavopuma commented 4 years ago

when using the python interface and calling the method entity_prediction passing as parameter a array like that app1.entity_prediction(H=["Laura Little"],R=["hasTasks"],T=["Act as advisers to student organizations."],target="head", k=3) to predict "HEAD" I receive this message:

assert len(new_R) == len(R), "Can't recognize some entities or relations

when I use a file with the folowing file indicated into the property file_name works as expected no message: hasTechnology_Skills,Autodesk AutoCAD hasTechnology_Skills,Navzilla hasTechnologySkills,Laboratory information management system LIMS hasTasks,Stock cabinets or serving areas with condiments and refill condiment containers. hasTasks,Evaluate and grade students' class work laboratory work assignments and papers. with this format:

no problem to do the same with TAIL.

KiddoZhu commented 4 years ago

Duplicate of #49