-
Notifications
You must be signed in to change notification settings - Fork 50
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
How can i get entity vecs given specified entity set #23
Comments
By the way, when i run step 9,(I didn't run steps before, but i've downloaded all files in polybox)
It seems that Some errors happened in generating file ent_name_id_map.t7, and i got a file ent_name_id_map.t7 in generated file(only 35B). I really don't know lua language, Please tell me what's wrong, thanks! |
Hi. The set of entities for which the current code trains entity embeddings is defined here: You would have to modify this code to train with a different set of entities. As per your error, I am not sure. Try to delete your ent_name_id_map.t7 and redo that step. These t7 files are not rewritten when you change code or data and thus, have to be deleted manually and then regenerated. |
Hi, I've got the reason why the error happens. I used lua 5.1, and it doesn't support torch. So i installed lua 5.3. It works.
Is that correct?(specific entity files record entity name per line) |
Thanks for your input. Yes, the small dataset in 1.1 can be removed, it was just for debugging (containing < 10 entities if i recall well). To access the specific entity vectors, you have first to load the t7 file via https://github.com/dalab/deep-ed/blob/master/entities/relatedness/relatedness.lua#L331 and then access the specific entity vectors using the dictionaries in the rewtr hashtable object. |
Hi, I read your code and i know i can get all entity vecs by changing learn_a.lua -entities flag. I don't need such big vec set. How can i train entity vecs given specified entity set? Thanks.
The text was updated successfully, but these errors were encountered: