DOKK / manpages / debian 11 / hfst / hfst-strings2fst.1.en
HFST-STRINGS2FST(1) User Commands HFST-STRINGS2FST(1)

hfst-strings2fst - =Compile string pairs and pair-strings into transducer(s)

hfst-strings2fst [OPTIONS...] [INFILE]

Compile string pairs and pair-strings into transducer(s)

Print help message
Print version info
Print verbosely while processing
Only print fatal erros and requested output
Alias of --quiet

Read input strings from INFILE
Write output transducer to OUTFILE

Write result in FMT format
Disjunct all strings instead of transforming each string into a separate transducer
Divide each weight by sum of all weights (with option -j)
Take negative natural logarithm of each weight
Take negative 10-based logarithm of each weight
Input is in pairstring format
Input has spaces between symbols/symbol pairs
Interpret string EPS as epsilon.
Strings that must be tokenized as one symbol.

If OUTFILE or INFILE is missing or -, standard streams will be used. FMT can be { foma, openfst-tropical, openfst-log, sfst, optimized-lookup-weighted, optimized-lookup-unweighted }. If EPS is not defined, the default representation of @0@ is used. Option --norm precedes option --log. The FILE of option -m lists all multichar-symbols, each symbol on its own line. Backslash '\' may be used to escape ':', tab and itself. For any other symbol x '\x' means x literally, i.e. is the same as 'x'. The weight of a string can be given after the string separated by a tabulator. The weight cannot be zero.

create cat:dog fst
same as pairstring
same as pairstring with spaces
same with spaces

Report bugs to <hfst-bugs@helsinki.fi> or directly to our bug tracker at: <https://github.com/hfst/hfst/issues>

hfst-strings2fst home page: <https://kitwiki.csc.fi/twiki/bin/view/KitWiki//Strings2Fst>
General help using HFST software: <https://kitwiki.csc.fi/twiki/bin/view/KitWiki//HfstHome>

Copyright © 2017 University of Helsinki, License GPLv3: GNU GPL version 3 <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.

August 2018 HFST