diff --git a/README.md b/README.md index 1207694..a2bfcd7 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ then translates the JOS tags (msds and dependencies) from English to 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 @@ -48,7 +48,7 @@ single-component or other structures. Finally the TEI is converted to 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 @@ -58,7 +58,7 @@ Combines strings_to_parse in parse_to_dictionary into one call 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 @@ -67,7 +67,7 @@ Same as strings_to_dictionary, but also validates the dictionary and 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 diff --git a/scripts/setup.sh b/scripts/setup.sh index 0602946..5563043 100755 --- a/scripts/setup.sh +++ b/scripts/setup.sh @@ -9,7 +9,6 @@ mkdir lib resources cd lib 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/conversion_utils.git cd .. ## prepare python environment @@ -22,7 +21,7 @@ pip install sqlalchemy pip install classla python -c "import classla; classla.download('sl', type='standard_jos', dir='resources/classla')" 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/ deactivate