apoorvumang / CronKGQA

ACL 2021: Question Answering over Temporal Knowledge Graphs
MIT License
93 stars 19 forks source link

KeyError: 'head' #18

Open yywhsgnd opened 1 year ago

yywhsgnd commented 1 year ago

KeyError: Caught KeyError in DataLoader worker process 0. Original Traceback (most recent call last): File "/home/jupyter/miniforge3/envs/env8/lib/python3.8/site-packages/torch/utils/data/_utils/worker.py", line 308, in _worker_loop data = fetcher.fetch(index) File "/home/jupyter/miniforge3/envs/env8/lib/python3.8/site-packages/torch/utils/data/_utils/fetch.py", line 51, in fetch data = [self.dataset[idx] for idx in possibly_batched_index] File "/home/jupyter/miniforge3/envs/env8/lib/python3.8/site-packages/torch/utils/data/_utils/fetch.py", line 51, in data = [self.dataset[idx] for idx in possibly_batched_index] File "/home/jupyter/workspace/CronKGQA-main/qa_datasets.py", line 372, in getitem head = data['head'][index] KeyError: 'head'

652994331 commented 1 year ago

@yywhsgnd hi, I met the same question, have u solved it ?