hyren / query2box

Query2box: Reasoning over Knowledge Graphs in Vector Space Using Box Embeddings
http://snap.stanford.edu/query2box
MIT License
203 stars 28 forks source link

trian_triples_1c.pkl, trian_triples_2c.pkl #9

Closed cx51666666 closed 2 years ago

cx51666666 commented 2 years ago

Hi Thanks for sharing the code, how I can generate files like trian_triples_1c.pkl, trian_triples_2c.pkl. Is it possible that you release the data processing code? Thanks!

Bigchen8013 commented 2 years ago

I also want to know, have you figured it out? Thanks for sharing!

hyren commented 2 years ago

Hi, please find the data generation code here. https://github.com/snap-stanford/KGReasoning/blob/main/create_queries.py

Bigchen8013 commented 2 years ago

Thank you very much for your reply! I would also like to consult, what papers or theories did you refer to for the generation of logical queries? I want to use your method (Query2Box) to implement a question answering system, but when inputting a natural language question, I don't know how to generate a logical query as in your paper. Hope to get your advice, thank you very much!

------------------ 原始邮件 ------------------ 发件人: "hyren/query2box" @.>; 发送时间: 2021年12月17日(星期五) 凌晨2:38 @.>; @.**@.>; 主题: Re: [hyren/query2box] trian_triples_1c.pkl, trian_triples_2c.pkl (Issue #9)

Hi, please find the data generation code here. https://github.com/snap-stanford/KGReasoning/blob/main/create_queries.py

— Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you commented.Message ID: @.***>

fffairrrry commented 2 years ago

Thank you very much for your reply! I would also like to consult, what papers or theories did you refer to for the generation of logical queries? I want to use your method (Query2Box) to implement a question answering system, but when inputting a natural language question, I don't know how to generate a logical query as in your paper. Hope to get your advice, thank you very much! ------------------ 原始邮件 ------------------ 发件人: "hyren/query2box" @.>; 发送时间: 2021年12月17日(星期五) 凌晨2:38 @.>; @.**@.>; 主题: Re: [hyren/query2box] trian_triples_1c.pkl, trian_triples_2c.pkl (Issue #9) Hi, please find the data generation code here. https://github.com/snap-stanford/KGReasoning/blob/main/create_queries.py — Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you commented.Message ID: @.***>

I also want to know how to convert natural language questions into logical queries, have you figured it out? Thanks!