From 6993dcc29b77a5bc492a9a16274d4b016cd84b60 Mon Sep 17 00:00:00 2001 From: matthmeyer Date: Sun, 25 Feb 2024 20:40:58 +0100 Subject: [PATCH] Fix indent to only append passages at the end of loop --- scripts/CRAG_Inference.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/CRAG_Inference.py b/scripts/CRAG_Inference.py index f695f8e..a69814e 100644 --- a/scripts/CRAG_Inference.py +++ b/scripts/CRAG_Inference.py @@ -94,7 +94,7 @@ def data_preprocess(file): tmp_psgs = [p] else: tmp_psgs.append(p) - passages.append(' [sep] '.join(tmp_psgs)) + passages.append(' [sep] '.join(tmp_psgs)) else: for line in f.readlines(): c = line.strip() @@ -109,7 +109,7 @@ def data_preprocess(file): tmp_psgs = [p] else: tmp_psgs.append(p) - passages.append(' [sep] '.join(tmp_psgs)) + passages.append(' [sep] '.join(tmp_psgs)) return queries, passages def get_evaluator_data(file):