ncbi-nlp / TrialGPT

Code and data for TrialGPT.
https://www.ncbi.nlm.nih.gov/research/trialgpt/
Other
48 stars 19 forks source link

How to generate retrieved_trials.json #1

Open traycho opened 6 days ago

traycho commented 6 days ago

I could not find a script that generates - retrieved_trials.json

Imagine I have a brand new dataset/new and have underlying

  /qrels/tests.tsv - empty
  /corpus.jsonl - populates as per other corpuses
  /id2queries.json - a single patient 
  /queries.jsonl - a single record for this patient 

I would like to generate a file retrieved_trials.json for this new corpus.

Andy-jqa commented 4 days ago

Can you run https://github.com/ncbi-nlp/TrialGPT?tab=readme-ov-file#trialgpt-retrieval?

traycho commented 4 days ago

Yes, I have run generated keywords but it generates a file /results/retrieval_keywords_XXXX_YYY.json the retrieved_trials.json is empty for me.

Where in the code you do populate this file ?