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

xxx.csv文件是如何得到的呢 #3

Open
tanxiaoying opened this issue Dec 14, 2023 · 1 comment
Open

xxx.csv文件是如何得到的呢 #3

tanxiaoying opened this issue Dec 14, 2023 · 1 comment

Comments

@tanxiaoying
Copy link

您好,您的代码很棒,但我在学习的过程中有一些不懂之处,希望您能给予解答
get_region_embeddings("xxx.csv", entity_final_embedddings,
'xxx.npy')
get_POI_embedding("xxx.csv", entity_final_embedddings,
'xxx.npy')
get_Road_embedding("xxx.csv", entity_final_embedddings,
'xxx.npy')
这段代码的xxx.csv文件是如何得到的呢?

@yasNing
Copy link
Collaborator

yasNing commented Dec 14, 2023

Hi, Xiaoying:

The xxx.csv file could be constructed via file "example_entity2id_NYC.txt" in our github project. Specifically, given the entity/entity_id and KG_id:

Road/181905 0
Junction/17059 1
POI/472298 2

we can obtain xxx.csv file using the following formatting:
entity entity_id KG_id

Road  181905 0
Junction 17059 1
POI 472298 2

We have uploaded the example file in here.The similar issue is proposed in issue #2. We hope our solution can help you.

Yansong

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

No branches or pull requests

2 participants