DOKK / manpages / debian 11 / hfst / hfst-sfstpl2fst.1.en
HFST-SFSTPL2FST(1) User Commands HFST-SFSTPL2FST(1)

hfst-sfstpl2fst - =Compile a file written with SFST programming language into a transducer.

hfst-sfstpl2fst (alias hfst-calculate) [OPTIONS...] [INFILE]

Compile a file written with SFST programming language into a transducer.

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

Read input from INFILE
Write output transducer to OUTFILE

Write result in FMT format

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}

echo "[a-z]*" | hfst-sfstpl2fst -f foma > az.foma
create a foma transducer accepting any number of consecutive characters between a and z, inclusive
echo "a:b (a:<>)+" > ab.sfst-pl ; hfst-sfstpl2fst -f openfst-tropical \

-i ab.sfst-pl -o ab.tropical

create a tropical OpenFst transducer that accepts two or more consecutive 'a's and maps them into string "b"

Report bugs to <hfst-bugs@helsinki.fi> or directly to our bug tracker at: <https://github.com/hfst/hfst/issues> hfst-sfstpl2fst home page: <https://kitwiki.csc.fi/twiki/bin/view/KitWiki//HfstSfstPl2Fst>
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