Open Lavishgurjar85 opened 4 days ago
You need to rename move test.info
and test.json
(from the gnn data folder) to the corresponding folder (see here).
We will add new automatic scripts at the near future.
The thing is there are two files we are using data_file = "/test.json" g_data_file = "/test.info"
if I only use test.info by renaming it too test.json The problem occurs is cand1 = data_file_gnn[line["id"]]["cand"] we require "id" for this but in test.info the data is {"question": "lou seal is the mascot for the team that last won the world series when ? ", "0": {}, "1": {}, "answers": ["m.0117q3yz"], "precison": 0.3333333333333333, "recall": 1.0, "f1": 0.5, "hit": 1.0, "cand": [["m.0117q3yz", 0.34248173236846924], ["m.09gnk2r", 0.328049898147583], ["m.0ds8qct", 0.32790225744247437]]} there is no "id"
Correct, I updated the previous message. You need both test.info
and test.json
from the gnn data to the new folder:
Can you please specify where this test.json files are Actually in the repository only test.info files are present
def load_gnn_rag(g_data_file, g_data_file2=None): data_file_d = {} data_file_gnn = {}
In this why we used test.json instead of test.info Also if we use test.info it does'nt contains ids