From f0f072916610050103bdb492c97ac8c0329b0c5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Drago=C8=99=20B=C4=83lan?= <33976463+greenw0lf@users.noreply.github.com> Date: Thu, 5 Oct 2023 16:05:25 +0200 Subject: [PATCH] Update pipeline.py --- ASR_NL_benchmark/pipeline.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ASR_NL_benchmark/pipeline.py b/ASR_NL_benchmark/pipeline.py index 9958883..fdd6c9d 100644 --- a/ASR_NL_benchmark/pipeline.py +++ b/ASR_NL_benchmark/pipeline.py @@ -213,12 +213,16 @@ class Pipeline(): def __init__(self, hypfile_input_path, hypextension, reffile_input_path, refextension, kind): self.progress = 0 self.failed = 0 - self.hypfile_input_path = hypfile_input_path - self.reffile_input_path = reffile_input_path + self.hypfile_input_path = os.path.join(os.path.sep,'input',hypfile_input_path) + self.reffile_input_path = os.path.join(os.path.sep,'input',reffile_input_path) self.hypextension = hypextension self.refextension = refextension self.kind = kind self.logging = set_logging(logpath=os.path.join(os.path.sep,'input',f'{date.today()}_logging.log')) + self.logging.info(f"hypfile path from terminal: {hypfile_input_path}") + self.logging.info(f"reffile path from terminal: {reffile_input_path}") + self.logging.info(f"Pipeline class' hypfile path: {self.hypfile_input_path}") + self.logging.info(f"Pipeline class' reffile path: {self.reffile_input_path}") def main(self): hyp_list, ref_list = process_input(self.hypfile_input_path, self.reffile_input_path)