fstequal(1)
πΈ NAME πΈ
fstequal β determine whether two FSTs are equal π
Hiii bestie, welcome to fstequal(1), a User Commands page, and honestly? It does exactly what it says on the tin. Two FSTs walk in, one yes-or-no walks out. No drama, no small talk, just judgment. π
β¨ SYNOPSIS β¨
fstequal [OPTIONS] in1.fst in2.fst
Two files in, one vibe check out. That's the whole ritual. π«Ά
π DESCRIPTION π
Determines whether two FSTs are equal. The exit status is zero for equal FSTs, and nonzero for unequal FSTs.
okay so plot twist: this program does not print anything cute for you. No "slay they match", no explanation, nothing. It speaks the ancient and noble language of exit statuses, because it is a good little Unix citizen like that. π
- exit status zero β the two FSTs are equal β
- exit status nonzero β they are not equal β
So like, if fstequal a.fst b.fst; then ... and you are basically done. Shell script main character energy, no cap. π
π OPTIONS π
Quick lil house rule before we get into the list, because this part matters: Boolean options accept either true or false as a value, or the implicit value true if neither value is specified. So --fst_align on its own is literally the same energy as --fst_align=true. The vibes are generous. β¨
--delta=VALUEβ set the comparison/quantization delta. Default:0.000976562.--fst_align[=BOOLEAN]β write FST data aligned where appropriate. Default:false.--fst_compat_symbols[=BOOLEAN]β require symbol tables to match when appropriate. Default:true.--fst_default_cache_gc[=BOOLEAN]β enable garbage collection of 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, returned objects are flagged as bad. For example, FSTs are returned with thekErrorproperty set to true, and FST weights set so thatMember()returns false. Default:true.--fst_field_separator=STRINGβ set the characters used as a separator between printed fields. Default:" "(yes bestie, that default is a real string made of actual spaces β not an empty string, not a trimmed one, spaces, so watch out π).--fst_read_mode=STRINGβ set 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β set 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 size0(none) or2(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.--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β set the temporary directory to use. Default:/tmp.--v[=N]β set the verbosity level. Default:0.
π¦ SEE ALSO π¦
The whole friend group, because this tool runs with a huge crew and you should absolutely go meet 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)fstequivalent(1)fstinfo(1)fstintersect(1)fstinvert(1)fstisomorphic(1)fstlinear(1)fstloglinearapply(1)fstmap(1)fstminimize(1)fstprint(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)
and that's the page, bestie π this one came out of OpenFst 1.8.5, dated Mar 2026 β so go run fstequal, check that exit status, and let it be known that your FSTs are either identical or they are not. periodt. π
π¦ 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