10. twexamp

The twexamp.py module can also be used as a standalone script or command in order to convert examples in pair string format into a finite-state transducer (FST). Examples in pair string format are plain human readable text files, one example per line, where each example is give as a space-separated sequence of pair symbols, e.g.:

k a u p {}:Ø {ao}:a s s {}:a

The invocation of the program could be e.g.:

$ python3 twexamp.py examples.pstr examples.fst

10.1. Functions of the twexamp module