fstdifference(1)
π fstdifference β it's giving "subtract an unweighted DFA from an FSA" β¨
okay so bestie, welcome to fstdifference(1), a user command from the OpenFst squad π«Ά she's a little niche but she EATS, I promise.
πΈ NAME πΈ
fstdifference β subtract an unweighted DFA from an FSA. that's it, that's the whole job, and she does it flawlessly π
β¨ SYNOPSIS β¨
fstdifference [OPTIONS] in1.fst in2.fst [out.fst]
like, in goes in1.fst, in goes in2.fst, and optionally out comes out.fst. three files, zero drama π
π¦ DESCRIPTION π¦
Subtracts an unweighted DFA from an FSA.
no literally that's what the page says and it's lowkey iconic in how brief it is. you hand her an FSA and an unweighted DFA, she does the subtraction thing. periodt β¨
π OPTIONS π
heads up bestie: boolean options accept eithertrueorfalseas a value, or the implicit valuetrueif neither value is specified. so like, bare flag = yes,=false= no. iykyk π
--compose_filter[=TYPE]β sets the composition filter. pick fromalt_sequence,auto,match, orsequence. default isauto. nglautojust handles it for you, main character energy π--connect[=BOOLEAN]β trim the output. default:trueπ--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 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]β iftrue, 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β set the characters used as a separator between printed fields. default:" "(yes queen, five spaces, exactly as written) π--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 (think pair weight, tuple weight, and derived classes) so nested composite weights do their I/O properly. 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 OpenFst friend group, obviously, she doesn't run alone:
fstarcsort(1), fstclosure(1), fstcompile(1), fstcompose(1), fstcompress(1), fstconcat(1), fstconnect(1), fstconvert(1), fstdeterminize(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), 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 whole vibe check bestie π this page is from OpenFst 1.8.5, dated Mar 2026. go subtract something, you absolute icon πβ¨
π¦ 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