DOKK / manpages / debian 12 / hfst / hfst-regexp2fst.1.en
HFST-REGEXP2FST(1) User Commands HFST-REGEXP2FST(1)

hfst-regexp2fst - =Compile (weighted) regular expressions into transducer(s)

hfst-regexp2fst [OPTIONS...] [INFILE]

Compile (weighted) regular expressions into transducer(s) Common options:

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

Read input transducer from INFILE
Write output transducer to OUTFILE

Write result in FMT format
Disjunct all regexps instead of transforming each regexp into a separate transducer
Input is line separated (default)
Input is semicolon separated
Map EPS as zero, i.e. epsilon.
symbols in composition (default is false).
Toggle xfst compatibility option VARIABLE.

Do not expand '?' symbols.
Harmonize flag diacritics.
Encode weights when minimizing (default is false).
Determinize result instead of minimizing it.

If OUTFILE or INFILE is missing or -, standard streams will be used. FMT must be one of the following: {foma, sfst, openfst-tropical, openfst-log}. If EPS is not defined, the default representation of 0 is used VALUEs recognized are {true,ON,yes} and {false,OFF,no}. Xfst variables are {flag-is-epsilon (default OFF)}.

create transducer {cat}:{dog}
same but with weight 3
same but with weight 3 in the middle
create transducers
"cat" and "dog" and "3"

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

hfst-regexp2fst home page: <https://github.com/hfst/hfst/wiki/Regexp2Fst>
General help using HFST software: <https://github.com/hfst/hfst/wiki>

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