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

any example of Adding new datasets? #63

Open
ghost opened this issue Jun 13, 2020 · 1 comment
Open

any example of Adding new datasets? #63

ghost opened this issue Jun 13, 2020 · 1 comment
Labels

Comments

@ghost
Copy link

ghost commented Jun 13, 2020

hi
i wanna test convE on my knowledge graph but i don't know what format should be this graph to be able to load in this model. is there any example code to convert my own graph in the right format?

@TimDettmers
Copy link
Owner

You create a folder with your dataset name. ConvE/data/mydataset and in that folder you have three files: train.txt, valid.txt, test.txt. These files have the format e1\trel\te2 where \t is a tab delimiter. In other words, each file is a tab-delimited CSV file with a triple e1,rel,e2 per row.

Once you have that, you can add your dataset to preprocess.sh or just execute python wrangle_KG.py mydataset. Now you run python main.py --data mydataset --preprocess and you are ready to go!

Let me know if you run into any problems.

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

No branches or pull requests

1 participant