-
Notifications
You must be signed in to change notification settings - Fork 39
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
Methods for generating node embeddings from word embeddings #8
Comments
Thanks @caufieldjh - specifically what we are looking for @LucaCappelletti94 @zommiommy is something like this:
If I understand correctly (which I might not), the only way to do this now is:
|
Hello @justaddcoffee and @caufieldjh, while there are methods already parametrized for the various repositories, the one you have reported here is the most generic one and does not work on graphs, but on generic CSVs. It requires the path of the CSV to parse: you can see its documentation by either using the |
Okay, great - thanks @LucaCappelletti94 @caufieldjh can you have a look and see if this provides what we need in NEAT to switch to Grape for text embeddings? I think it should |
It looks like it should work, though there is some kind of name collision between Embiggen's
|
That's extremely odd, I'll look into it. |
Ok so, I have managed to reproduce it and tried to resolve this collision for a while. This has turned out to be quite cursed, so I will fall-back to the "I'm just going to rename that" option. I'm thinking about what name could fit that better. It's the submodule that given a node embedding and a graph gets you the edge embedding or any of the likes. A name like |
Maybe |
I have renamed it for now from |
I think that should work fine - at least I can't see a package on Pypi with that name so it shouldn't create the same kind of collision |
This issue should be now resolved, @caufieldjh could you confirm? |
While updating NEAT to use the most recent grape release, @justaddcoffee and @hrshdhgd and I took a look at what we're using to generate node embeddings based on pretrained word embeddings like BERT etc. : https://github.com/Knowledge-Graph-Hub/NEAT/blob/main/neat/graph_embedding/graph_embedding.py
We know we can run something like
get_okapi_tfidf_weighted_textual_embedding()
on a graph, but is there a more "on demand" way to run this in grape now for an arbitrary graph?The text was updated successfully, but these errors were encountered: