fstlinear(1)

πŸ’– fstlinear(1) β€” the "compile to a linear FST" girlie πŸ’–

okay bestie, sit down, we're doing fstlinear, part of the User Commands squad, and honestly? she's lowkey iconic. she compiles stuff into a linear FST and she does it without any drama. let's get into it πŸ¦‹


✨ NAME ✨

fstlinear β€” compile to a linear FST. that's it. that's the whole personality. no cap. πŸ’…


🌸 SYNOPSIS 🌸

fstlinear [OPTIONS] [in.fst [out.fst]]

so you give her OPTIONS, and optionally in.fst to read from and out.fst to write to. if you don't hand her files she's gonna vibe with the standard streams, iykyk. 🫢


πŸŽ€ DESCRIPTION πŸŽ€

Compile to a linear FST. ✨

that's the description. she said what she said. main character energy, minimal words, maximum slay. πŸ‘‘


πŸ’… OPTIONS πŸ’…

quick heads up before we dive in, because this matters: Boolean options accept either true or false as a value, or they just implicitly take the value true if you don't specify anything at all. so --help and --help=true are the same vibe, periodt. ✨

  • --arc_type=TYPE β€” set the output arc type. Default: standard.
  • --classifier[=BOOLEAN] β€” treat the input model as a classifier instead of a tagger. Default: false.
  • --delimiter=CHARACTER β€” one single non-whitespace character that acts as the delimiter inside sequences of feature symbols and output symbols. Default: |.
  • --empty_symbol=STRING β€” set the special symbol that means "this is an empty sequence". Default: "<empty>".
  • --end_symbol=STRING β€” set the end of sentence symbol. Default: "</s>".
  • --epsilon_symbol=STRING β€” set the epsilon symbol. Default: "<eps>".
  • --fst_align[=BOOLEAN] β€” write FST data aligned where it makes sense to. Default: false.
  • --fst_compat_symbols[=BOOLEAN] β€” require symbol tables to match when appropriate. Default: true.
  • --fst_default_cache_gc[=BOOLEAN] β€” turn on garbage collection for the cache. Default: true.
  • --fst_default_cache_gc_limit=N β€” set the cache byte size that triggers garbage collection. Default: 1048576.
  • --fst_error_fatal[=BOOLEAN] β€” if true, FST errors are fatal. otherwise the returned objects get flagged as bad instead. 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 β€” set the characters used as a separator between printed fields. Default: " ".
  • --fst_read_mode=STRING β€” set the default file reading mode for mappable files, either "read" or "map". Default: "read".
  • --fst_verify_properties[=BOOLEAN] β€” verify the fst properties that get queried by TestProperties. Default: false.
  • --fst_weight_parentheses=STRING β€” set the characters that enclose the first weight of a printed composite weight (think pair weight, tuple weight, derived classes, the whole family) so nested composite weights do proper I/O. it must have size 0 (meaning none) or 2 (open and close parenthesis). Default: no parentheses.
  • --fst_weight_separator=CHARACTER β€” set the character separator between printed composite weights. Default: comma.
  • --help[=BOOLEAN] β€” show usage information. Default: false.
  • --helpshort[=BOOLEAN] β€” show brief usage information. Default: false.
  • --out=PATHNAME β€” set the path to the output binary. Default: no path.
  • --save_fsymbols=FILENAME β€” save the feature symbol table to a file. Default: don't write a table.
  • --save_isymbols=FILENAME β€” save the input symbol table to a file. Default: don't write a table.
  • --save_osymbols=FILENAME β€” save the output symbol table to a file. Default: don't write a table.
  • --save_relabel_ipairs=FILENAME β€” save input relabel pairs to file. Default: don't save.
  • --save_relabel_opairs=FILENAME β€” save output relabel pairs to file. Default: don't save.
  • --start_symbol=STRING β€” set the end of sentence symbol. Default: "<s>". πŸ™ˆ (yes bestie, it literally says "end of sentence symbol" right there in the source, we do not make the rules, we just report them faithfully πŸ’€)
  • --tmpdir=PATHNAME β€” set the temporary directory to use. Default: /tmp.
  • --unknown_symbol=STRING β€” set the unknown symbol. Default: "<unk>".
  • --v[=N] β€” set the verbosity level. Default: 0.
  • --vocab=PATHNAME β€” set the path to the vocabulary file. Default: no path.

🌈 SEE ALSO 🌈

her whole friend group, fr fr β€” go say hi to all of them 🫢:


that's the whole page bestie, you ate that πŸ“ go compile something linear and gorgeous.

OpenFst 1.8.5 Β· Mar 2026 β€” mwah, love u, bye! πŸ’–βœ¨πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from