From 10e12e525bb79cdb2a99002fb9f77fec9c331c36 Mon Sep 17 00:00:00 2001 From: lkrsnik Date: Fri, 17 Nov 2023 07:40:59 +0100 Subject: [PATCH] Updated run.sh and deleted run-multiple-starks.py --- run-multiple-starks.py | 17 ----------------- run.sh | 2 +- 2 files changed, 1 insertion(+), 18 deletions(-) delete mode 100644 run-multiple-starks.py diff --git a/run-multiple-starks.py b/run-multiple-starks.py deleted file mode 100644 index 38cd460..0000000 --- a/run-multiple-starks.py +++ /dev/null @@ -1,17 +0,0 @@ -import os -from pathlib import Path - -input_path = '/home/lukakrsnik/STARK/data/ud-treebanks-v2.11/' -output_path = '/home/lukakrsnik/STARK/results/ud-treebanks-v2.11_B/' -config_path = '/home/lukakrsnik/STARK/data/B_test-all-treebanks_3_completed_unlabeled_fixed_form_root=NOUN_5.ini' - -for path in sorted(os.listdir(input_path)): - path_obj = Path(input_path, path) - pathlist = path_obj.glob('**/*.conllu') - for path in sorted(pathlist): - folder_name = os.path.join(output_path, path.parts[-2]) - file_name = os.path.join(folder_name, path.name) - if not os.path.exists(folder_name): - os.makedirs(folder_name) - if not os.path.exists(file_name): - os.system("python /home/luka/Development/STARK/stark.py --config_file " + config_path + " --input " + str(path) + " --output " + file_name) diff --git a/run.sh b/run.sh index f2f4d88..e4f77c5 100755 --- a/run.sh +++ b/run.sh @@ -1,3 +1,3 @@ source venv/bin/activate -python3 stark.py --config_file="$1" +python3 stark.py --config_file="config.ini" deactivate