make fill_database

This commit is contained in:
2019-03-17 17:25:59 +01:00
parent d8fd3ad30b
commit 2d4a6a152a
13 changed files with 72 additions and 373 deletions

View File

@@ -1,23 +1,42 @@
# cjvt-valency
Required submodules:
* `https://gitea.cjvt.si/kristjan/cjvt-corpusparser.git`
```bash
$ git submodule init
```
## Components
### Database (2 containers)
Input:
Spin up the database service and create users:
```bash
# $ make database-clean # opt
$ make database-service
$ make database-users
```
Populate the database with data form files:
* ssj500k.xml
* kres.xml
* kres_SRL.json
Intermediate:
Set path to files in `Makefile`.
```bash
# spin up a container with python env
$ make python-env
* ssj500k.json **HERE HERE**
* kres.json
# install our packages
$ make python-env-install
Output:
# run the code
$ make fill_database
```
* DB containing both corpora (1:1 map of the intermediate json formats)
If all goes well, we should be able to inspect the database on `0.0.0.0:8087`.
### Flask backend (1 container)