Skip to content

question about run preprocess.py on metaqa #13

@DW934

Description

@DW934

When I run the preprocess.py on dataset meatqa,I get the following error:

Traceback (most recent call last):
File "C:\ProgramData\anaconda3\envs\ChatKBQA\lib\runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\ProgramData\anaconda3\envs\ChatKBQA\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "C:\Code\GraphQ_IR-master\preprocess.py", line 98, in
main()
File "C:\Code\GraphQ_IR-master\preprocess.py", line 90, in main
outputs = encode_dataset(dataset, vocab, tokenizer)
File "C:\Code\GraphQ_IR-master\preprocess.py", line 20, in encode_dataset
inputs.append(item['input'])
KeyError: 'input'

Could you give me some clue about how this happen and how to fix it ?Thanks a lot!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions