From 66c43b3d195bb6aa13fc43250663df88296b325b Mon Sep 17 00:00:00 2001 From: voje Date: Mon, 25 Feb 2019 13:44:24 +0100 Subject: [PATCH] Makefile fix --- Makefile | 8 +++++++- tools/gen_json.py | 5 +++++ tools/srl-20131216/tag_all.sh | 2 +- 3 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 tools/gen_json.py diff --git a/Makefile b/Makefile index 2568b7a..8c5adc9 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,10 @@ all: srl_tagged_files -srl_tagged_files: #tsv_files +json_files: srl_tagged_files + cd tools; python3 gen_json.py + +srl_tagged_files: tsv_files # cd tools/srl-20131216; ./scripts/parse_srl_only_mod.sh; cd - cd tools/srl-20131216; ./tag_all.sh ../../data/kres_example_tsv ../../data/kres_example_srl @@ -11,3 +14,6 @@ tsv_files: fillpred_model/model.pickle fillpred_model/model.pickle: cd tools/fillpred_model; $(MAKE) + +env: + cd dockerfiles; cd python-java; $(MAKE) diff --git a/tools/gen_json.py b/tools/gen_json.py new file mode 100644 index 0000000..c074a8d --- /dev/null +++ b/tools/gen_json.py @@ -0,0 +1,5 @@ +import Path + +if __name__ == "__main__": + print("TODO: take data/kres_example_srl/* and generate data/kres_example_json/*") + print("TODO: check ssj and kres for structure") diff --git a/tools/srl-20131216/tag_all.sh b/tools/srl-20131216/tag_all.sh index 21b163c..6f39eab 100755 --- a/tools/srl-20131216/tag_all.sh +++ b/tools/srl-20131216/tag_all.sh @@ -5,7 +5,7 @@ OUT_FOLDER="$2" SUFFIX="srl.tsv" mkdir -p $OUT_FOLDER -rm $OUT_FOLDER/*${SUFFIX} +rm $OUT_FOLDER/*${SUFFIX} &> /dev/null for infile in $IN_FOLDER/*; do echo "Tagging: ${infile}"