HFST-STRINGS2FST(1)
β¨ hfst-strings2fst β¨
okay bestie, so this is the manual page for hfst-strings2fst π it's a User Command, it lives in the HFST family, and it's about to be your new fave.
πΈ NAME πΈ
hfst-strings2fst β =Compile string pairs and pair-strings into transducer(s)
(yes the = is literally in there, no I did not add it, we keep it π
)
π SYNOPSIS π
hfst-strings2fst [OPTIONS...] [INFILE]
π¦ DESCRIPTION π¦
Compile string pairs and pair-strings into transducer(s). that's the whole vibe. you feed it strings, it hands you back a transducer (or several), no cap.
π Common options:
-h,--helpβ print the help message, aka the "wait what does this do" button-V,--versionβ print version info, so you know exactly which era of this software you're living in-v,--verboseβ print verbosely while processing, she's chatty and that's iconic-q,--quietβ only print fatal erros and requested output (yes, "erros", that's the manpage's own spelling, we're leaving it π)-s,--silentβ alias of--quiet, same energy, different letter
π Input/Output options:
-i,--input=INFILEβ read input strings from INFILE-o,--output=OUTFILEβ write output transducer to OUTFILE
π String and format options:
-f,--format=FMTβ write result in FMT format-j,--disjunct-stringsβ disjunct all strings instead of transforming each string into a separate transducer--normβ divide each weight by sum of all weights (only does anything with option-j)--logβ take negative natural logarithm of each weight--log10β take negative 10-based logarithm of each weight-p,--pairstringsβ input is in pairstring format-S,--has-spacesβ input has spaces between symbols/symbol pairs-e,--epsilon=EPSβ interpret string EPS as epsilon-m,--multichar-symbols=FILEβ strings that must be tokenized as one symbol
π«Ά housekeeping, bestie, listen up: If OUTFILE or INFILE is missing or-, standard streams will be used. the classic. FMT can be {foma,openfst-tropical,openfst-log,sfst,optimized-lookup-weighted,optimized-lookup-unweighted}. six options, all gorgeous. If EPS is not defined, the default representation of@0@is used. Option--normprecedes option--log. order matters, don't be chaotic. The FILE of option-mlists 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. like, at all. zero is not the move here.
π₯ EXAMPLES π₯
honestly these are so satisfying to look at:
echo "cat:dog" | hfst-strings2fst
create cat:dog fst π
echo "c:da:ot:g" | hfst-strings2fst -p
same as pairstring β¨
echo "c:d a:o t:g" | hfst-strings2fst -p -S
same as pairstring with spaces πΈ
echo "c a t:d o g" | hfst-strings2fst -S
same with spaces π¦
π REPORTING BUGS π
found something cursed? Report bugs to <hfst-bugs@helsinki.fi> or directly to our bug tracker at: <https://github.com/hfst/hfst/issues> β they genuinely wanna hear it, fr fr.
hfst-strings2fsthome page: <https://github.com/hfst/hfst/wiki/Strings2Fst>- 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. (read it again. no warranty. she said what she said.)
and that's the whole page, bestie π this was the HFST hfst-strings2fst(1) manual, dated August 2018, from the HFST project β go forth and compile those string pairs, you absolute main character πβ¨π¦
π¦ 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