2020-09-30 21:08:14 +00:00
|
|
|
Pipeline for parsing a file of arbitrary Slovene string and assigning
|
|
|
|
(first creating, if necessary) structure_ids for each string.
|
2020-09-30 17:50:00 +00:00
|
|
|
|
|
|
|
Example usage:
|
|
|
|
|
|
|
|
$ cd scripts
|
|
|
|
$ ./setup.sh
|
|
|
|
$ echo "velika miza" > ../tmp/strings.txt
|
|
|
|
$ echo "kdo ne more mimo česa" >> ../tmp/strings.txt
|
|
|
|
$ echo "pazi, avto!" >> ../tmp/strings.txt
|
2020-09-30 21:08:14 +00:00
|
|
|
$ echo "počitnice" >> ../tmp/strings.txt
|
2020-09-30 17:50:00 +00:00
|
|
|
$ source ../venv/bin/activate
|
2020-09-30 21:08:14 +00:00
|
|
|
$ python pipeline.py ../tmp/strings.txt ../tmp/dictionary.xml
|