Makefile fix

This commit is contained in:
voje 2019-02-25 13:44:24 +01:00
parent d67705e81e
commit 66c43b3d19
3 changed files with 13 additions and 2 deletions

View File

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

5
tools/gen_json.py Normal file
View File

@ -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 <links> for structure")

View File

@ -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}"