Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Where are the predicates in the vectors? #263

Open
FcarrilloBre17 opened this issue Apr 9, 2024 · 1 comment
Open

Where are the predicates in the vectors? #263

FcarrilloBre17 opened this issue Apr 9, 2024 · 1 comment
Labels
question Further information is requested

Comments

@FcarrilloBre17
Copy link

Hi, i am new using your package and I have 1 question,
I am Following your tutorials from medium and kaggle, correcting ome issues with the library version and the parameters in there, but i don't find the predicates in any dir. I want to know the weight of a edge between two entities, more than the entities vectorized. It is implemented?

@FcarrilloBre17 FcarrilloBre17 added the question Further information is requested label Apr 9, 2024
@GillesVandewiele
Copy link
Collaborator

GillesVandewiele commented Apr 18, 2024

Hi @FcarrilloBre17: does this issue help you? #108

In a nutshell: we use Word2Vec from gensim. After fitting that model, the object will contain embeddings for all tokens in the documents (which correspond to nodes in the KG). However:

  1. We only return the embeddings of the provided entities list
  2. During walk generation, we hash everything except the entities in the provided list to save memory.

So to find them you will: (i) have to disable hashing (md5_bytes argument) and (ii) include the predicates you're interested in, in your predicate list, or just return everything (you will have to patch the transform() function).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants