You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently I stuck at the retriever inference part. Got some errors because it looks for the gold_ind key in the test_turn.json data file but there is no gold_ind in the test data right?
The following is the error message:
(env) [~finqanet_retriever]$ python Test.py
71 211
Reading: operation_list.txt
Reading: constant_list.txt
Reading /home/playground/ConvFinQA/data/test_turn.json
Traceback (most recent call last):
File "/home/playground/ConvFinQA/code/finqanet_retriever/Test.py", line 52, in <module>
read_examples(input_path=conf.test_file, tokenizer=tokenizer,
File "/home/playground/ConvFinQA/code/finqanet_retriever/utils.py", line 172, in read_examples
examples.append(finqa_utils.read_mathqa_entry(entry, tokenizer))
File "/home/playground/ConvFinQA/code/finqanet_retriever/finqa_utils.py", line 356, in read_mathqa_entry
all_positive = entry["annotation"]["gold_ind"]
KeyError: 'gold_ind'
Additional information
Also, i had to commented out the part that loads the test data in the Main.py training script so I could start training it.
The reason is that, in code/finqanet_retriever/finqa_utils.py, it looks for the gold_ind key in the given data file but the test json file doesnt have the key.
Hi. The reason for missing 'gold_ind' in test set is that this is a private test set and you can only submit your results on leaderboard to get a result. Check FinQA code for more information. There is a solution for handling of private data, and that works for ConvFinQA.
Hi,
Currently I stuck at the retriever inference part. Got some errors because it looks for the
gold_ind
key in the test_turn.json data file but there is nogold_ind
in the test data right?The following is the error message:
Additional information
Also, i had to commented out the part that loads the test data in the
Main.py
training script so I could start training it.The reason is that, in
code/finqanet_retriever/finqa_utils.py
, it looks for thegold_ind
key in the given data file but the test json file doesnt have the key.The text was updated successfully, but these errors were encountered: