HFST-FST2STRINGS(1)
π¦ hfst-fst2strings(1) β bestie edition π¦
okay so welcome to the hfst-fst2strings(1) manual page, the HFST one, and I'm gonna hold your hand through every single flag because you deserve that π no cap, nothing is getting skipped.
β¨ NAME β¨
hfst-fst2strings β and the original page says it does =Display the strings recognized by a transducer (the = is literally theirs, I'm keeping it, iykyk π
). So: it shows you the strings your transducer recognizes. That's the whole job, and it eats.
π SYNOPSIS π
hfst-fst2strings [OPTIONS...] [INFILE]
πΈ DESCRIPTION πΈ
Display the strings recognized by a transducer. That's it, that's the vibe β you hand it a transducer, it hands you back the strings π«
π Common options:
-h,--helpβ print the help message, the classic "what do I do now" button-V,--versionβ print version info-v,--verboseβ print verbosely while processing, she's chatty-q,--quietβ only print fatal erros and requested output (yes, "erros" β the typo is in the original, we keep it, we don't touch the sacred texts π)-s,--silentβ alias of--quiet, same energy, different name
π₯ Fst2strings options:
-n,--max-strings=NSTRβ print at most NSTR strings-N,--nbest=NBESTβ print at most NBEST best strings-r,--random=NRANDβ print at most NRAND random strings-c,--cycles=NCYCβ follow cycles at most NCYC times-w,--print-weightsβ display the weight for each string-S,--print-separatorβ print separator"--"after each transducer-e,--epsilon-format=EPSβ print epsilon as EPS-X,--xfst=VARIABLEβ toggle xfst compatibility option VARIABLE
π Ignore paths if:
-b,--beam=Bβ output string weight not within B from the weight of the best output string-l,--max-in-length=MILβ input string longer than MIL-L,--max-out-length=MOLβ output string longer than MOL-p,--in-prefix=OPREFIXβ input string not beginning with IPREFIX-P,--out-prefix=OPREFIXβ output string not beginning with OPREFIX-u,--in-exclude=IXSTRβ input string containing IXSTR-U,--out-exclude=OXSTβ output string containing OXSTR
now the fine print, and bestie there is a LOT of fine print, so lock in π
If OUTFILE or INFILE is missing or -, standard streams will be used. Format of result depends on format of INFILE. If all NSTR, NBEST and NCYC are omitted, all possible paths are printed: NSTR, NBEST and NCYC default to infinity. NBEST overrides NSTR and NCYC. NRAND overrides NBEST, NSTR and NCYC. B must be a non-negative float. If EPS is not given, default is empty string. Numeric options are parsed with strtod(3). Xfst variables supported are { obey-flags, print-flags, print-pairs, print-space, quote-special }.
β real talk: those "ignore paths if" flags are filtering out paths, so read them as "throw this away whenβ¦", not "keep this whenβ¦". The wording above is straight from the source, no cap.
π§ EXAMPLES π§
hfst-fst2strings lexical.hfst
generates all forms of lexical.hfst β iconic, honestly π
π Known bugs:
Does not work correctly for hfst optimized lookup format.
π yes, that's the bug, that's the whole bug, do not use it with hfst optimized lookup format and expect correct results.
π«Ά 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>
- hfst-fst2strings home page: <https://github.com/hfst/hfst/wiki/HfstFst2Strings>
- 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.
π¨ NO WARRANTY bestie, it's free software, you can change it and share it, but if it explodes that's on you π
and that's the page!! brought to you by HFST, dated August 2018 β she's been serving this exact manual since then and she ate, fr fr πβ¨π¦
π¦ 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