forked from kristjan/cjvt-valency
working on parser
This commit is contained in:
34
Makefile
Normal file
34
Makefile
Normal file
@@ -0,0 +1,34 @@
|
||||
# All required components, to create and fill a database,
|
||||
# instantiate backend and frontend.
|
||||
|
||||
MAKE_ROOT = $(shell pwd)
|
||||
|
||||
### Input data
|
||||
# I received ssj500k in one .xml file,
|
||||
# kres is composed of many .xml files
|
||||
# I generated srl tags for kres in separate .json files
|
||||
# (for each kres.xml file there is a kres.json file with srl tags)
|
||||
SSJ_FILE = "$(MAKE_ROOT)/data/samples/ssj_example/ssj500k-sl.body.sample.xml"
|
||||
KRES_FOLDER = "$(MAKE_ROOT)/data/samples/kres_example"
|
||||
KRES_SRL_FOLDER = "$(MAKE_ROOT)/data/kres_srl"
|
||||
export
|
||||
|
||||
.PHONY: dev-env preflight
|
||||
|
||||
all:
|
||||
echo "Select an argument"
|
||||
|
||||
# prereq (environment)
|
||||
dev-env:
|
||||
cd dockerfiles; cd dev-env; $(MAKE)
|
||||
|
||||
# run these inside dev-env container
|
||||
data/samples:
|
||||
cd data; tar xzvf samples.tar.gz
|
||||
|
||||
# installs our python code as packages
|
||||
# when debugging, run this once, then run python3 ... by hand
|
||||
preflight: data/samples
|
||||
pip3 install -e src/pkg/corpusparser/.
|
||||
python3 src/preflight/main_parse.py --kres-folder $(KRES_FOLDER) \
|
||||
--ssj-file $(SSJ_FILE) --kres-srl-folder $(KRES_SRL_FOLDER)
|
||||
Reference in New Issue
Block a user