forked from kristjan/cjvt-valency
make fill_database
This commit is contained in:
31
README.md
31
README.md
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user