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 istrue, FST errors are fatal. otherwise, the returned objects get flagged as bad β like, FSTs come back with thekErrorproperty set totrue, and FST weights get set so thatMember()returnsfalse. 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 byTestProperties. 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 size0(none) or2(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
- ubuntu stonking: libfst-tools 1.8.5-2 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms