From 177b3521818f4b50a4425f6bc69daaec41418d80 Mon Sep 17 00:00:00 2001 From: Cyprian Laskowski Date: Tue, 15 Dec 2020 16:59:41 +0100 Subject: [PATCH] IssueID #1487: tweaked pipeline option specs --- scripts/pipeline2.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/scripts/pipeline2.py b/scripts/pipeline2.py index ec5d31c..fa3664c 100644 --- a/scripts/pipeline2.py +++ b/scripts/pipeline2.py @@ -6,13 +6,14 @@ import lxml.etree as lxml from constants import * arg_parser = argparse.ArgumentParser(description='Assign parsed Slovene strings to structures and generate lexicon.') -arg_parser.add_argument('-intei', type=str, help='Parsed and manually edited TEI file') -arg_parser.add_argument('-outstructures', type=str, help='Output structure file') -arg_parser.add_argument('-outlexicon', type=str, help='Output lexicon file') +arg_parser.add_argument('-intei', type=str, required=True, help='Parsed and manually edited TEI file') +arg_parser.add_argument('-outlexicon', type=str, required=True, help='Output lexicon file') +arg_parser.add_argument('-outstructures', type=str, required=True, help='Output structure file') arguments = arg_parser.parse_args() + input_tei_file_name = arguments.intei -output_structure_file_name = arguments.outstructures output_lexicon_file_name = arguments.outlexicon +output_structure_file_name = arguments.outstructures def run_pipeline(input_tei_file_name, output_lexicon_file_name, output_structure_file_name): shutil.rmtree(TMP_DIRECTORY, True)