IBCNServices / pyRDF2Vec

🐍 Python Implementation and Extension of RDF2Vec
https://pyrdf2vec.readthedocs.io/en/latest/
MIT License
244 stars 49 forks source link

Embedding for Predicates #108

Closed TimEricSchwabe closed 1 year ago

TimEricSchwabe commented 2 years ago

❓ Question

I do not obtain any embeddings for the predicates when training the model on a custom RDF graph. However, from reading the RDF2VEC paper, I assume they should be generated.

Am I missing something?

GillesVandewiele commented 2 years ago

Hello,

They should be in there, but by default we hash all hops in a walk that are not part of the provided entity list in order to save memory. You can set md5_bytes=None for your Walking strategy, and then you can call the transform() function with a list of predicates as well.

LMK in case the issue persists.

GillesVandewiele commented 1 year ago

Closing due to inactivity. feel free to re-open if need be

GillesVandewiele commented 1 year ago

Closing due to inactivity. feel free to re-open if need be