|
|
|
@ -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)
|
|
|
|
|