From e3aa8a3aee68596d6ec979244ce0c2424ee1ef54 Mon Sep 17 00:00:00 2001 From: Cyprian Laskowski Date: Wed, 10 Mar 2021 18:43:27 +0100 Subject: [PATCH] Redmine #1487: changes with new classla version --- package/structure_assignment/pipeline.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/package/structure_assignment/pipeline.py b/package/structure_assignment/pipeline.py index b111b14..6088c4b 100644 --- a/package/structure_assignment/pipeline.py +++ b/package/structure_assignment/pipeline.py @@ -15,9 +15,10 @@ from nova_slovnica.translate_jos import translate as translate_jos from nova_slovnica.conllu_to_xml import convert_file as conllu_to_tei NLP_CONFIG_MAP = { - 'treebank': 'sl_ssj_jos', + 'type': 'standard_jos', 'processors': 'tokenize,pos,lemma,depparse', 'tokenize_pretokenized': True, + 'pos_use_lexicon': True, 'models_dir': None } @@ -33,7 +34,7 @@ def __get_tmp_file_name(file_key): def initialise(**argument_map): global resource_directory resource_directory = argument_map['resource_dir'] - NLP_CONFIG_MAP['models_dir'] = resource_directory + '/classla' + NLP_CONFIG_MAP['dir'] = resource_directory + '/classla' def import_file(file_name, file_key): shutil.copyfile(file_name, __get_tmp_file_name(file_key))