|
|
@ -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
|
|
|
|