Contains the tool for viewing valency frames and adding user-defined senses to underlying sentences.
Go to file
2019-03-17 17:25:59 +01:00
data corpusparser finished python dict representation; TODO .json and DB 2019-03-13 08:59:27 +01:00
dockerfiles make fill_database 2019-03-17 17:25:59 +01:00
src make fill_database 2019-03-17 17:25:59 +01:00
src_diploma old files from diploma's poc 2019-03-07 09:00:01 +01:00
.gitignore fixed the weird bug (defined a list instead of dict... should have gone to sleep yesterday) 2019-03-11 09:26:49 +01:00
.gitmodules make fill_database 2019-03-17 17:25:59 +01:00
Makefile make fill_database 2019-03-17 17:25:59 +01:00
README.md make fill_database 2019-03-17 17:25:59 +01:00

cjvt-valency

Required submodules:

  • https://gitea.cjvt.si/kristjan/cjvt-corpusparser.git
$ git submodule init

Components

Database (2 containers)

Spin up the database service and create users:

# $ make database-clean  # opt
$ make database-service
$ make database-users

Populate the database with data form files:

  • ssj500k.xml
  • kres.xml
  • kres_SRL.json

Set path to files in Makefile.

# spin up a container with python env
$ make python-env

# install our packages
$ make python-env-install

# run the code
$ make fill_database

If all goes well, we should be able to inspect the database on 0.0.0.0:8087.

Flask backend (1 container)

Input: see Database

API endpoints:

  • GET word list (pre-cached)
  • GET reduced frames (pre-cached)
  • POST senses
  • User auth logic

Vue frontend (1 container)

  • ngnix server

Deployment

Preflight:

  • get up DB
  • prepare DB

Flight:

  • start backend
  • start frontend