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

About TempoQR result on TimeQuestions #5

Open
zhenjia2017 opened this issue Aug 2, 2023 · 3 comments
Open

About TempoQR result on TimeQuestions #5

zhenjia2017 opened this issue Aug 2, 2023 · 3 comments

Comments

@zhenjia2017
Copy link

Thank you so much for sharing the experimental results on TimeQuestions. It is super helpful for us! Right now we are conducting some experiments on TimeQuestions and need the full ranked answer list so that we could compute the metrics ourselves. I wonder if you could provide the ranked answer list of TimeQuestions? Thank you so much!

@cmavro
Copy link
Owner

cmavro commented Aug 6, 2023

Hi!

Unfortunately, I have not kept the trained model or the log files. However, I have the commands for reproducing the experiments here, e.g.,

python ./train_qa_model.py --model tempoqr --supervision hard --dataset_name timequestions2 --tkbc_model_file tkbc_timeq3.ckpt --max_epochs 200 --lr 1e-4 --valid_freq 5 --batch_size 8 --valid_batch_size 32 --frozen 0

Let me know if that will work!

@zhenjia2017
Copy link
Author

Thanks a lot!
When I run the script, it shows the error message:
hard_supervision_functions.py, line 89, in get_kg_facts_for_datapoint
ent = e['annotation']['tail']
KeyError: 'tail'

I debug and found there is one annotation whose key is none (keys =e['annotation'].keys())

I wonder how to deal with this case? Thank you!

@zhenjia2017
Copy link
Author

After removing the item in the data without any triple, the problem was solved :)

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