HFST-FST2FST(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-FST2FST(1) 🌸

okay bestie, welcome to the hfst-fst2fst page from the HFST manual β€” it's a User Commands one, and it's literally the glow-up station for your transducers ✨


πŸ’– NAME πŸ’–

hfst-fst2fst β€” converts transducers between binary formats πŸ¦‹


✨ SYNOPSIS ✨

hfst-fst2fst [OPTIONS...] [INFILE]

πŸŽ€ DESCRIPTION πŸŽ€

So basically: it converts transducers between binary formats. That's the whole vibe. You hand it a transducer, it hands you back a transducer in a different binary format. iconic behavior, no notes πŸ’…

🌈 Common options: 🌈

  • -h, --help β€” prints the help message, your lil cheat sheet 🫢
  • -V, --version β€” prints version info, so you know what era of HFST you're living in
  • -v, --verbose β€” prints stuff verbosely while it's processing, so it yaps the whole time πŸ’¬
  • -q, --quiet β€” only prints fatal erros and requested output. yes, that's "erros" β€” we keep the original spelling, it's part of the lore 😭
  • -s, --silent β€” alias of --quiet, same energy, different letter 🀫

🧚 Input/Output options: 🧚

  • -i, --input=INFILE β€” reads the input transducer from INFILE
  • -o, --output=OUTFILE β€” writes the output transducer to OUTFILE

πŸ‘‘ Conversion options: πŸ‘‘

  • -f, --format=FMT β€” writes the result in FMT format
  • -b, --use-backend-format β€” writes the result in implementation format, without any HFST wrappers (raw, unfiltered, main character energy)
  • -S, --sfst β€” writes output in (HFST's) SFST implementation
  • -F, --foma β€” writes output in (HFST's) foma implementation
  • -x, --xfsm β€” writes output in native xfsm format
  • -t, --openfst-tropical β€” writes output in (HFST's) tropical weight (OpenFST) implementation
  • -l, --openfst-log β€” writes output in (HFST's) log weight (OpenFST) implementation
  • -O, --optimized-lookup-unweighted β€” writes output in the HFST optimized-lookup implementation
  • -w, --optimized-lookup-weighted β€” writes output in optimized-lookup (weighted) implementation
  • -Q --quick β€” when converting to optimized-lookup, doesn't try hard to compress. low effort, on purpose, we respect it πŸ™ˆ

okay so, housekeeping stuff:

If OUTFILE or INFILE is missing or is -, standard streams will be used. 🫧

The format of the result depends on the format of INFILE. FMT must be the name of a format usable by libhfst, i.e. one of the following:

{ foma, openfst-tropical, openfst-log, sfst, xfsm
       optimized-lookup-weighted, optimized-lookup-unweighted }
⚠️ heads up bestie: note that xfsm format is always written in native format without HFST wrappers. no wrapping, no bow, just the format itself 🎁

πŸ› REPORTING BUGS πŸ›

Found a bug? Tell the devs, they wanna know fr fr:


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. (fr fr, no warranty, read it and weep 😭)


and that's the whole page, babe πŸ’– stay slay, convert responsibly, and remember: this was HFST, dated August 2018, from the HFST era of the manual πŸ‘‘βœ¨

πŸ“¦ where this page comes from