From b14689ea4213a191c47dd9183fcb1494b061c3b0 Mon Sep 17 00:00:00 2001
From: "laura.riviere" <laura.riviere@irit.fr>
Date: Tue, 3 Jan 2023 15:21:01 +0100
Subject: [PATCH] fix steps bug in main script

---
 code/discut22_2.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/code/discut22_2.py b/code/discut22_2.py
index d017ee7..0bf7b74 100644
--- a/code/discut22_2.py
+++ b/code/discut22_2.py
@@ -93,7 +93,7 @@ def make_predictions(data_in, model_path):
     model = model_path # add def get_model from v1
     data_out = f"{data.resu}/{data.name}_pred.json"
     #cmd = f"allennlp predict --use-dataset-reader --output-file {data_out} {model_path} {data_in} &> {steps.data.resu}/logs.txt"
-    cmd = f"allennlp predict --use-dataset-reader --output-file {data_out} {model_path} {data_in} &> {steps.data.resu}/logs_predictions.txt"
+    cmd = f"allennlp predict --use-dataset-reader --output-file {data_out} {model_path} {data_in} &> {data.resu}/logs_predictions.txt"
     os.system(cmd)
     return data_out
 
-- 
GitLab