diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..2568b7a --- /dev/null +++ b/Makefile @@ -0,0 +1,13 @@ +.PHONY: tsv_files srl_tagged_files + +all: srl_tagged_files + +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 + +tsv_files: fillpred_model/model.pickle + cd tools; python3 parse_all.py + +fillpred_model/model.pickle: + cd tools/fillpred_model; $(MAKE) diff --git a/README.md b/README.md index 8875208..50a01e8 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,8 @@ We'll be using mate-tools to perform SRL on Kres. ## workspace The tools require Java. -See `./dockerfiles/python-java/README.md` for environment preparation. +Go to `./dockerfiles/python-java/` and run `make`. +You should get a docker environment, mounting this repo. ## mate-tools Check out `./tools/srl-20131216/README.md`. @@ -14,15 +15,23 @@ Check all possible xml tags (that occur after the tag. ## Tools * Parser for reading both `SSJ500k 2.1 TEI xml` and `Kres F....xml.parsed.xml"` files found in `./tools/parser/parser.py`. +* `fillpred_model` for creating a yes/no model for preditcing the predicate (based on ssj500k data). ## Usage ```bash -$ ./dockerfiles/python-java` +$ cd ./dockerfiles/python-java` $ make # you should be inside a container now -$ make