make sskj-senses
This commit is contained in:
11
Makefile
11
Makefile
@@ -19,6 +19,7 @@ KRES_SRL_FOLDER = "/home/kristjan/kres_data/payload/kres_json"
|
||||
|
||||
# This file comes with the source code. Make sure you unpack it and name it right.
|
||||
SSKJ_WORDLIST = "$(MAKE_ROOT)/data/wordlist.json"
|
||||
SSKJ_JSON = "$(MAKE_ROOT)/data/sskj_senses.json"
|
||||
|
||||
OUTPUT = "db"
|
||||
# OUTPUT = "file"
|
||||
@@ -105,6 +106,7 @@ frontend-prod:
|
||||
## Backend
|
||||
|
||||
# runs once and exits before the app starts
|
||||
# need to extract ./data/sskj_data.tar.gz first
|
||||
backend-prepare-db:
|
||||
cd ./src/backend_flask; python3 app.py \
|
||||
--config-file ./conf_files/dev_conf.yaml \
|
||||
@@ -121,3 +123,12 @@ backend-prod:
|
||||
cd ./src/backend_flask; python3 app.py \
|
||||
--config-file ./conf_files/prod_conf.yaml \
|
||||
--dbuser $(DB_USR_USER) --dbpass $(DB_USR_PASS) --dbaddr $(DBADDR)
|
||||
|
||||
## add sskj senses to db (generated with pkg/seqparser)
|
||||
sskj-senses:
|
||||
python3 ./src/pkg/seqparser/seqparser/main.py \
|
||||
--sskj-json $(SSKJ_JSON) \
|
||||
--operation "senses_to_db" \
|
||||
--dbaddr $(DBADDR) \
|
||||
--dbuser $(DB_USR_USER) \
|
||||
--dbpass $(DB_USR_PASS)
|
||||
|
||||
Reference in New Issue
Block a user