HFST-FST2STRINGS(1)

πŸ“¦
version 3.17.1 Β· 2 versions
  • 3.17.1 Β· debian bookworm, debian trixie, nixos 26.05, opensuse-leap 16.0, ubuntu jammy, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking (latest)
  • 3.17.3 Β· nixpkgs unstable
, in debian bookworm, debian trixie, nixos 26.05, opensuse-leap 16.0, ubuntu jammy, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ¦‹ 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>


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