From 743ee6ebae514946498cecb54ad75e540de6b5be Mon Sep 17 00:00:00 2001 From: Cyprian Laskowski Date: Tue, 10 Nov 2020 14:07:44 +0100 Subject: [PATCH] IssueID #1487: fixed parameter names --- scripts/pipeline1.py | 4 ++-- scripts/pipeline2.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/pipeline1.py b/scripts/pipeline1.py index 0d63f26..18b1aed 100644 --- a/scripts/pipeline1.py +++ b/scripts/pipeline1.py @@ -14,8 +14,8 @@ arg_parser = argparse.ArgumentParser(description='Parse Slovene strings and conv arg_parser.add_argument('-inlist', type=str, help='Input list file') arg_parser.add_argument('-outtei', type=str, help='Output TEI file') arguments = arg_parser.parse_args() -input_file_name = arguments.infile -output_file_name = arguments.outfile +input_file_name = arguments.inlist +output_file_name = arguments.outtei NLP_CONFIG_MAP = { 'treebank': 'sl_ssj_jos', diff --git a/scripts/pipeline2.py b/scripts/pipeline2.py index e8187dc..fb62ced 100644 --- a/scripts/pipeline2.py +++ b/scripts/pipeline2.py @@ -13,8 +13,8 @@ arg_parser.add_argument('-outlexicon', type=str, help='Output lexicon file') arguments = arg_parser.parse_args() input_list_file_name = arguments.inlist input_tei_file_name = arguments.intei -output_lexicon_file_name = arguments.outlexicon output_structure_file_name = arguments.outstructures +output_lexicon_file_name = arguments.outlexicon def run_pipeline(input_list_file_name, input_tei_file_name, output_lexicon_file_name, output_structure_file_name): shutil.rmtree(TMP_DIRECTORY, True)