Skip to content

Commit

Permalink
Merge pull request #9 from opensource-spraakherkenning-nl/greenw0lf-p…
Browse files Browse the repository at this point in the history
…atch-4

Add full paths to reffile and hypfile for command version
  • Loading branch information
KleinRana authored Oct 5, 2023
2 parents f11bfe3 + f0f0729 commit 1a4745d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions ASR_NL_benchmark/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1a4745d

Please sign in to comment.