fstprint(1)

πŸ‘‘ fstprint β€” the glow-up your FST deserves πŸ’…

okay bestie, so fstprint is a little icon from the User Commands collection and she has ONE job: take your binary FST and print it out in simple text format. that's it. that's the whole vibe. she eats every time. ✨

✨ SYNOPSIS ✨

fstprint [OPTIONS] [binary.fst [text.fst]]

literally just hand her your options and your files and she'll handle it 🫢

🌸 DESCRIPTION 🌸

Prints out binary FSTs in simple text format. no cap, that's the entire description. she's a one-trick pony and the trick is iconic. πŸ¦‹

πŸŽ€ OPTIONS πŸŽ€

quick heads up before we get into it, bestie: Boolean options accept either true or false as a value, or the implicit value true if neither value is specified. so like, if you're feeling lazy you can just say the flag and it'll assume true. periodt. πŸ’–

  • --acceptor[=BOOLEAN] β€” treats the input as being in acceptor format. Default: false. πŸŽ€
  • --allow_negative_labels[=BOOLEAN] β€” lets negative labels through. not recommended, and it may cause conflicts!! Default: false. πŸ’€
  • --fst_align[=BOOLEAN] β€” writes FST data aligned, where appropriate. Default: false. ✨
  • --fst_compat_symbols[=BOOLEAN] β€” requires symbol tables to match, when appropriate. Default: true. πŸ”₯
  • --fst_default_cache_gc[=BOOLEAN] β€” turns on garbage collection of the cache. Default: true. 🧚
  • --fst_default_cache_gc_limit=N β€” sets the cache byte size that triggers garbage collection. Default: 1048576. πŸ“
  • --fst_error_fatal[=BOOLEAN] β€” if this is true, FST errors are fatal. otherwise, the returned objects get flagged as bad β€” like, FSTs come back with the kError property set to true, and FST weights get set so that Member() returns false. Default: true. 😭
  • --fst_field_separator=STRING β€” sets the characters used as a separator between printed fields. Default: " ". 🌈
  • --fst_read_mode=STRING β€” sets the default file reading mode for mappable files, and it's either "read" or "map". Default: "read". πŸ‘‘
  • --fst_verify_properties[=BOOLEAN] β€” verifies the fst properties queried by TestProperties. Default: false. ⭐
  • --fst_weight_parentheses=STRING β€” sets the characters enclosing the first weight of a printed composite weight (think pair weight, tuple weight, and derived classes) so that nested composite weights get proper I/O. must have size 0 (none) or 2 (open and close parenthesis). Default: no parentheses. πŸ’œ
  • --fst_weight_separator=CHARACTER β€” sets the character separator between printed composite weights. Default: comma. πŸŽ€
  • --help[=BOOLEAN] β€” shows usage information. Default: false. 🫢
  • --helpshort[=BOOLEAN] β€” shows brief usage information. Default: false. ✨
  • --isymbols=FILENAME β€” sets the input label symbol table. Default: "". πŸ¦‹
  • --missing-symbol=CHARACTER β€” the symbol to print when a lookup fails. Default: raise an error. 😭
  • --numeric[=BOOLEAN] β€” prints numeric labels. Default: false. πŸ”’
  • --osymbols=FILENAME β€” sets the output label symbol table. Default: "". 🌸
  • --save_isymbols=FILENAME β€” saves the input symbol table to a file. Default: do not write a table. πŸ’Ύ
  • --save_osymbols=FILENAME β€” saves the output symbol table to a file. Default: do not write a table. πŸ’Ύ
  • --save_relabel_ipairs=FILENAME β€” saves input relabel pairs to a file. Default: do not save. πŸŽ€
  • --save_relabel_opairs=FILENAME β€” saves output relabel pairs to a file. Default: do not save. πŸŽ€
  • --show_weight_one[=BOOLEAN] β€” prints/draws arc weights and final weights equal to semiring One. Default: false. 🌟
  • --ssymbols=FILENAME β€” sets the state label symbol table. Default: "". πŸ¦‹
  • --tmpdir=PATHNAME β€” sets the temporary directory to use. Default: /tmp. πŸ“
  • --v[=N] β€” sets the verbosity level. Default: 0. πŸ—£οΈ

🌈 SEE ALSO 🌈

the whole friend group fr fr, go say hi to all of them:

fstarcsort(1), fstclosure(1), fstcompile(1), fstcompose(1), fstcompress(1), fstconcat(1), fstconnect(1), fstconvert(1), fstdeterminize(1), fstdifference(1), fstdisambiguate(1), fstdraw(1), fstencode(1), fstepsnormalize(1), fstequal(1), fstequivalent(1), fstinfo(1), fstintersect(1), fstinvert(1), fstisomorphic(1), fstlinear(1), fstloglinearapply(1), fstmap(1), fstminimize(1), fstproject(1), fstprune(1), fstpush(1), fstrandgen(1), fstrelabel(1), fstreplace(1), fstreverse(1), fstreweight(1), fstrmepsilon(1), fstshortestdistance(1), fstshortestpath(1), fstsymbols(1), fstsynchronize(1), fsttopsort(1), fstunion(1)


oh and before you go β€” this whole page is OpenFst 1.8.5, and she was born in Mar 2026. tell her she looks gorgeous today. bye bestie, go print some FSTs πŸ’–βœ¨πŸ¦‹
πŸ“¦ where this page comes from