farextract(1)
π farextract β extract FSTs from a finite-state archive π
okay bestie, so this is farextract, part of the OpenFst squad, and it does exactly what it says on the tin: it pulls FSTs out of a finite-state archive. that's it. that's the whole job. she's an unarchiver and she's iconic for it β¨
πΈ SYNOPSIS πΈ
farextract [OPTIONS] [in1.far in2.far...]
so you hand her some .far files (or not, she's flexible like that) plus whatever options you're feeling, and she extracts. slay π«Ά
π¦ DESCRIPTION π¦
Extracts FSTs from a finite-state archive. periodt. no notes, no plot twist, no lore β she takes FSTs out of the archive, done π
β¨ OPTIONS β¨
quick vibe check before we dive in: <highlight>Boolean options</highlight> accept either true or false as a value, or the implicit value true if you don't specify a value at all. so yes bestie, you can just say the flag and she'll assume true β she's generous like that π
--filename_prefix=STRINGβ sets the prefix that gets prepended to filenames. default: no prefix. she's giving β¨nameless but freeβ¨--filename_suffix=STRINGβ sets the suffix that gets appended to filenames. default: no suffix. lowkey minimalist π--fst_align[=BOOLEAN]β write FST data aligned where appropriate. default:false.--fst_compat_symbols[=BOOLEAN]β require symbol tables to match when appropriate. default:true. she will be checking receipts, no cap π§Ύ--fst_default_cache_gc[=BOOLEAN]β enable garbage collection of cache. default:true. take out the trash, queen ποΈβ¨--fst_default_cache_gc_limit=Nβ sets the cache byte size that triggers garbage collection. default:1048576.--fst_error_fatal[=BOOLEAN]β iftrue, FST errors are fatal. otherwise, returned objects are flagged as bad. for example, FSTs are returned with thekErrorproperty set totrue, and FST weights set so thatMember()returnsfalse. default:true. so by default she does NOT do casual error handling β an error is an error is an error π--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, either"read"or"map". default:"read".--fst_verify_properties[=BOOLEAN]β verify fst properties queried byTestProperties. default:false.--fst_weight_parentheses=STRINGβ sets the characters enclosing the first weight of a printed composite weight (e.g., pair weight, tuple weight, and derived classes) to ensure proper I/O of nested composite weights. must have size 0 (none) or 2 (open and close parenthesis). default: no parentheses. pls don't give her 1 or 7 characters, she will be upset π--fst_weight_separator=CHARACTERβ sets the character separator between printed composite weights. default: comma.--generate_filenames=Nβ generateNdigit numeric filenames. default: use keys.--help[=BOOLEAN]β show usage information. default:false. she'll explain herself, bestie π--helpshort[=BOOLEAN]β show brief usage information. default:false. the TL;DR version, for when your attention span is cooked π--keys=KEYSβ extract a set of keys. ranges of keys are separated by--range-delimiter. distinct groups of keys are separated by--key-separator. she's picky (affectionate) π--key-separator=CHARACTERβ sets the character separator between groups of keys. default: comma.--range-delimiter=CHARACTERβ sets the character separator between the start and end keys of a range. default: hyphen.--save_relabel_ipairs=FILENAMEβ save input relabel pairs to file. default: do not save.--save_relabel_opairs=FILENAMEβ save output relabel pairs to file. default: do not save.--tmpdir=PATHNAMEβ sets the temporary directory to use. default:/tmp.--v[=N]β sets the verbosity level. default:0. crank it up if you want her to yap π£οΈ
okay real talk for a sec: that--fst_error_fatalthing is not a joke. when it'strue(which it is by default), FST errors are fatal. if you want the softer "flag it as bad and keep going" behaviour, you've gotta flip it tofalseyourself. know before you go π«Ά
π SEE ALSO π
her besties, the whole far-squad, all doing their own little jobs:
farcompilestrings(1), farcreate(1), farequal(1), farinfo(1), farisomorphic(1), farprintstrings(1)
go say hi, they don't bite π
and that's the whole page bestie!! this one's from OpenFst 1.8.5, dated Mar 2026 β so like, cite her properly if you're being academic about it π mwah, go extract something iconic π β¨
π¦ 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