Redmine #1835: tweaked setup and readme

This commit is contained in:
Cyprian Laskowski 2022-03-10 17:00:51 +01:00
parent a83686b9eb
commit a5e60a3e89
2 changed files with 5 additions and 6 deletions

View File

@ -33,7 +33,7 @@ then translates the JOS tags (msds and dependencies) from English to
Slovene and converts the output to TEI XML. Example: Slovene and converts the output to TEI XML. Example:
``` ```
$ python scripts/process.py -mode strings_to_parse -infile /tmp/strings.txt -outfile /tmp/parsed.xml $ python process.py -mode strings_to_parse -infile /tmp/strings.txt -outfile /tmp/parsed.xml
``` ```
### parse_to_dictionary ### parse_to_dictionary
@ -48,7 +48,7 @@ single-component or other structures. Finally the TEI is converted to
CJVT dictionary XML format. Example: CJVT dictionary XML format. Example:
``` ```
$ python scripts/process.py -mode parse_to_dictionary -infile /tmp/parsed.xml -instructs /tmp/structures_old.xml -outfile /tmp/dictionary.xml -outstructs /tmp/structures_new.xml $ python process.py -mode parse_to_dictionary -infile /tmp/parsed.xml -instructs /tmp/structures_old.xml -outfile /tmp/dictionary.xml -outstructs /tmp/structures_new.xml
``` ```
### strings_to_dictionary ### strings_to_dictionary
@ -58,7 +58,7 @@ Combines strings_to_parse in parse_to_dictionary into one call
between). Example: between). Example:
``` ```
$ python scripts/process.py -mode strings_to_dictionary -infile /tmp/strings.txt -instructs /tmp/structures_old.xml -outfile /tmp/dictionary.xml -outstructs /tmp/structures_new.xml $ python process.py -mode strings_to_dictionary -infile /tmp/strings.txt -instructs /tmp/structures_old.xml -outfile /tmp/dictionary.xml -outstructs /tmp/structures_new.xml
``` ```
### all ### all
@ -67,7 +67,7 @@ Same as strings_to_dictionary, but also validates the dictionary and
structures outputs, just in case. structures outputs, just in case.
``` ```
$ python scripts/process.py -mode all -infile /tmp/strings.txt -instructs /tmp/structures_old.xml -outfile /tmp/dictionary.xml -outstructs /tmp/structures_new.xml $ python process.py -mode all -infile /tmp/strings.txt -instructs /tmp/structures_old.xml -outfile /tmp/dictionary.xml -outstructs /tmp/structures_new.xml
``` ```
## REST API ## REST API

View File

@ -9,7 +9,6 @@ mkdir lib resources
cd lib cd lib
git clone git@gitea.cjvt.si:ozbolt/luscenje_struktur.git git clone git@gitea.cjvt.si:ozbolt/luscenje_struktur.git
git clone git@gitea.cjvt.si:generic/xml_schemas.git git clone git@gitea.cjvt.si:generic/xml_schemas.git
git clone git@gitea.cjvt.si:generic/conversion_utils.git
cd .. cd ..
## prepare python environment ## prepare python environment
@ -22,7 +21,7 @@ pip install sqlalchemy
pip install classla pip install classla
python -c "import classla; classla.download('sl', type='standard_jos', dir='resources/classla')" python -c "import classla; classla.download('sl', type='standard_jos', dir='resources/classla')"
pip install lib/luscenje_struktur/ pip install lib/luscenje_struktur/
pip install lib/conversion_utils/ pip install git+https://git@gitea.cjvt.si/generic/conversion_utils.git#egg=conversion_utils
pip install package/ pip install package/
deactivate deactivate