HFST-SFSTPL2FST(1)
π HFST-SFSTPL2FST(1) π
okay bestie, sit down, hydrate, and let me tell you about a little tool from the HFST family (that's the User Commands crew, section 1, iykyk) that is genuinely so useful it's not even funny. it's called hfst-sfstpl2fst and it's about to become your new hyperfixation. π¦
β¨ NAME β¨
hfst-sfstpl2fst β =Compile a file written with SFST programming language into a transducer.
yes the = is in there. it came like that. we don't ask questions, we just vibe. π
π SYNOPSIS π
hfst-sfstpl2fst (alias hfst-calculate) [OPTIONS...] [INFILE]
she also answers to hfst-calculate, so if you call her that, she will respond. main character with two names energy fr fr. π
πΈ DESCRIPTION πΈ
Compile a file written with SFST programming language into a transducer. that's the whole thing. that's the job. you give her SFST source, she hands you back a transducer, and honestly? slay. π
π« Common options:
-h,--helpβ Print help message. she tells you how she works. communication queen.-V,--versionβ Print version info. so you know exactly which era of her you're dealing with.-v,--verboseβ Print verbosely while processing. she narrates. no thoughts, just updates.-q,--quietβ Only print fatal erros and requested output. (yes, "erros". typo is canon, we keep it, periodt.) she goes silent mode but still screams if something's fatal.-s,--silentβ Alias of--quiet. same girl, different name tag.
π Input/Output options:
-i,--input=INFILEβ Read input from INFILE. hand her the file, she reads it.-o,--output=OUTFILEβ Write output transducer to OUTFILE. she writes it back out. give and take, it's giving healthy relationship. π«Ά
π€ String and format options:
-f,--format=FMTβ Write result in FMT format.
If OUTFILE or INFILE is missing or -, standard streams will be used. so you can absolutely pipe her into things, she loves that.
FMT must be one of the following: {foma, sfst, openfst-tropical, openfst-log}
pick one of those four. not five. not "whatever feels right". those four. π
π₯ EXAMPLES π₯
1. the a-through-z machine
echo "[a-z]*" | hfst-sfstpl2fst -f foma > az.foma
create a foma transducer accepting any number of consecutive characters between a and z, inclusive. any number!! including zero!! she's flexible like that. β¨
2. the double-a to b machine
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". two or more, bestie, she said what she said. π
π REPORTING BUGS π
found a bug? do NOT suffer in silence, that's not the vibe.
- Report bugs to <hfst-bugs@helsinki.fi> β the email address, it's right there, use it π«Ά
- or directly to our bug tracker at: <https://github.com/hfst/hfst/issues>
hfst-sfstpl2fst home page: <https://github.com/hfst/hfst/wiki/HfstSfstPl2Fst>
General help using HFST software: <https://github.com/hfst/hfst/wiki>
π COPYRIGHT π
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. like... none. zero. the audacity of software, honestly. π but hey, it's free, so.
so yeah β that's hfst-sfstpl2fst, compiled straight from SFST source into a transducer, four whole formats, one iconic alias. this page came from the HFST crew and it's dated August 2018, and it lives in section HFST-SFSTPL2FST(1) of the manual. go make something beautiful with it. mwah. πβ¨π
π¦ where this page comes from
- debian bookworm: hfst 3.16.0-5 Β· GPL-3.0-or-later
- debian trixie: hfst 3.16.2-1+b1 Β· GPL-3.0-or-later
- nixos 26.05: hfst 3.16.2
- opensuse-leap 16.0: hfst 3.16.0-bp160.1.11 Β· Apache-2.0 AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-only AND GPL-3.0-or-later AND GPL-3.0-only
- ubuntu jammy: hfst 3.15.4-2 Β· GPL-3.0-or-later
- ubuntu noble: hfst 3.16.0-5build4 Β· GPL-3.0-or-later
- ubuntu questing: hfst 3.16.2-1
- ubuntu resolute: hfst 3.16.2-1build2 Β· GPL-3.0-or-later
- ubuntu stonking: hfst 3.17.1-6 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms