IssueID #1487: fixed parameter names

This commit is contained in:
Cyprian Laskowski 2020-11-10 14:07:44 +01:00
parent 51ed244a5c
commit 743ee6ebae
2 changed files with 3 additions and 3 deletions

View File

@ -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('-inlist', type=str, help='Input list file')
arg_parser.add_argument('-outtei', type=str, help='Output TEI file') arg_parser.add_argument('-outtei', type=str, help='Output TEI file')
arguments = arg_parser.parse_args() arguments = arg_parser.parse_args()
input_file_name = arguments.infile input_file_name = arguments.inlist
output_file_name = arguments.outfile output_file_name = arguments.outtei
NLP_CONFIG_MAP = { NLP_CONFIG_MAP = {
'treebank': 'sl_ssj_jos', 'treebank': 'sl_ssj_jos',

View File

@ -13,8 +13,8 @@ arg_parser.add_argument('-outlexicon', type=str, help='Output lexicon file')
arguments = arg_parser.parse_args() arguments = arg_parser.parse_args()
input_list_file_name = arguments.inlist input_list_file_name = arguments.inlist
input_tei_file_name = arguments.intei input_tei_file_name = arguments.intei
output_lexicon_file_name = arguments.outlexicon
output_structure_file_name = arguments.outstructures 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): def run_pipeline(input_list_file_name, input_tei_file_name, output_lexicon_file_name, output_structure_file_name):
shutil.rmtree(TMP_DIRECTORY, True) shutil.rmtree(TMP_DIRECTORY, True)