From 6cdae34cff47bfc29d53e3c61efec0bd94f27341 Mon Sep 17 00:00:00 2001 From: Justin Xu Date: Thu, 11 Apr 2024 22:30:23 -0700 Subject: [PATCH] Update scoring --- scoring/scoring.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/scoring/scoring.py b/scoring/scoring.py index db02730..640fc6d 100644 --- a/scoring/scoring.py +++ b/scoring/scoring.py @@ -228,18 +228,21 @@ def compute_overall_score(scores): print("Done.") return leaderboard -######################################################## +################################################################################################# +# specify the directories for your submission.csv and the discharge_target.csv reference_dir = os.path.join("/app/input/", "ref") generated_dir = os.path.join("/app/input/", "res") + +# specify the directory where the scores.json file will be saved score_dir = "/app/output/" -######################################################## +################################################################################################# print("Reading generated texts...") generated = pd.read_csv( os.path.join(generated_dir, "submission.csv"), keep_default_na=False ) reference = pd.read_csv( - os.path.join(reference_dir, "discharge_target_final.csv"), keep_default_na=False + os.path.join(reference_dir, "discharge_target.csv"), keep_default_na=False ) # covert all elements to string