2020-09-17 07:29:53 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
cd ..
|
|
|
|
|
|
|
|
## set up virtual environment
|
|
|
|
python3 -m venv venv
|
|
|
|
source venv/bin/activate
|
2021-01-12 10:21:25 +00:00
|
|
|
pip install classla
|
|
|
|
pip install lxml
|
|
|
|
pip install obeliks
|
2021-01-27 11:48:20 +00:00
|
|
|
pip install psycopg2cffi
|
|
|
|
pip install sqlalchemy
|
2020-09-17 07:29:53 +00:00
|
|
|
python -c "import classla; classla.download('sl_ssj_jos')" <<< $'Y\nresources/classla'
|
|
|
|
deactivate
|
|
|
|
|
|
|
|
## get needed repositories
|
|
|
|
git clone git@gitea.cjvt.si:redmine_projects/nova_slovnica.git
|
|
|
|
git clone git@gitea.cjvt.si:ozbolt/luscenje_struktur.git
|
2020-11-04 17:05:12 +00:00
|
|
|
git clone git@gitea.cjvt.si:generic/data_admin.git
|
|
|
|
git clone git@gitea.cjvt.si:generic/xml_schemas.git
|
2020-09-17 07:29:53 +00:00
|
|
|
|
|
|
|
## put needed scripts in place
|
|
|
|
cd scripts
|
|
|
|
ln -s ../nova_slovnica/python/scripts/conllu_to_xml.py .
|
2021-01-27 11:48:20 +00:00
|
|
|
ln -s ../nova_slovnica/python/scripts/assign_single_structures.py .
|
2020-09-17 07:29:53 +00:00
|
|
|
ln -s ../nova_slovnica/python/scripts/assign_structures.py .
|
2020-09-30 14:37:42 +00:00
|
|
|
ln -s ../nova_slovnica/python/scripts/create_structures.py .
|
2021-01-12 10:07:41 +00:00
|
|
|
ln -s ../nova_slovnica/python/scripts/translate_jos.py .
|
2020-09-30 21:08:14 +00:00
|
|
|
ln -s ../nova_slovnica/python/scripts/tei_to_dictionary.py .
|
2020-11-04 17:05:12 +00:00
|
|
|
ln -s ../luscenje_struktur/wani.py .
|
2020-09-17 07:29:53 +00:00
|
|
|
cd ..
|
|
|
|
|
|
|
|
## put needed resources in place
|
|
|
|
cd resources
|
|
|
|
ln -s ../nova_slovnica/resources/dict.xml .
|
2020-11-04 17:05:12 +00:00
|
|
|
ln -s ../data_admin/resources/structures.xsd .
|
|
|
|
ln -s ../xml_schemas/resources/schema/inventory.xsd .
|
|
|
|
ln -s ../xml_schemas/resources/schema/monolingual_dictionaries.xsd .
|
2020-09-17 07:29:53 +00:00
|
|
|
cd ..
|