Multi-hopComplexKBQA icon indicating copy to clipboard operation
Multi-hopComplexKBQA copied to clipboard

an error in "Test the Pre-trained Model"

Open Alex-9827 opened this issue 3 years ago • 1 comments

Hi, in the section "Test the Pre-trained Model",I simply run the shell file: .WBQ_Runner.sh,but I got an errror: UnboundLocalError: local variable 'pred_ans' referenced before assignment I checked and find that when args.do_train=0 and args.do_eval=2, the KB={},M2N={},and QUERY=set(), which means they are all empty, therefore I got empty returned value after the function "retrieve_KB()", what should I do to get the right result, I would appreciate it if anyone can give me some advice.

Alex-9827 avatar May 17 '21 07:05 Alex-9827

@Alex-9827 I was facing a similar issue, but running with args.do_eval=1 seems to work.

imohitmayank avatar May 18 '21 05:05 imohitmayank