HFST-LEXC(1)
π hfst-lexc(1) β the glow-up edition π
okay so bestie, you've stumbled into the User Commands manual page for hfst-lexc, and honestly? she's iconic. sit down, grab a boba, and let's get into it β¨
πΈ NAME πΈ
hfst-lexc β compile lexc files into transducer π
(yes that's literally the whole job. no cap.)
π¦ SYNOPSIS π¦
hfst-lexc [OPTIONS...] [INFILE1...]]
like, options first, then your input files. she's flexible. she contains multitudes. π«Ά
β¨ DESCRIPTION β¨
Compile lexc files into transducer. that's it, that's the vibe. π
π Common options:
-h,--helpβ print help message. your girl's got answers π-V,--versionβ print version info. for when you need receipts π-v,--verboseβ print verbosely while processing. she's gonna overshare and we love that for her-q,--quietβ only print fatal errors and requested output. the strong silent type fr fr-s,--silentβ alias of--quiet. same energy, different name, twin behavior π―
π Input/Output options:
-f,--format=FORMATβ compile into FORMAT transducer. choose your fighter βοΈ-o,--output=OUTFILEβ write result into OUTFILE. she needs somewhere to put her masterpiece π
π Lexc options:
-A,--alignStringsβ align characters in input and output strings. matchy matchy β¨-E,--encode-weightsβ encode weights when minimizing (default is false). note the default: false. periodt.-F,--withFlagsβ use flags to hyperminimize result. hyperminimize. HYPER. minimize. π₯-M,--minimizeFlagsβ if--withFlagsis used, minimize the number of flags. less is more, bestie-R,--renameFlagsβ if--withFlagsand--minimizeFlagsare used, rename flags (for testing). it's giving lab rat energy but make it cute π§ͺ-x,--xerox-composition=VALUEβ Whether flag diacritics are treated as ordinary symbols in composition (default is true). default is true, okurrr-X,--xfst=VARIABLEβ toggle xfst compatibility option VARIABLE. flip that switch ποΈ-W,--Werrorβ treat warnings as errors. she does NOT tolerate a single peep of a warning π
real talk: if INFILE or OUTFILE are omitted or -, standard streams will be used. so yes, she'll read your vibes straight from stdin if you want her to π«§
The possible values for FORMAT are { sfst, openfst-tropical, openfst-log, foma, optimized-lookup-unweighted, optimized-lookup-weighted }.
VALUEs recognized are {true,ON,yes} and {false,OFF,no}.
Xfst variables are {flag-is-epsilon (default OFF)}.
π EXAMPLES π
hfst-lexc -o cat.hfst cat.lexcβ compile single-file lexicon π±hfst-lexc -o L.hfst Root.lexc 2.lexc 3.lexcβ compile multi-file lexicon. three files, one queen π
π Using weights:
LEXICON Root cat # "weight: 2" ; Define weight for a word
<[dog::1]+> # ; Use weights in regular expressions
okay so the first line defines a weight for a word, the second uses weights in regular expressions. slay. π
big important heads-up: using weights has an effect only if FORMAT is weighted, i.e. { openfst-tropical, openfst-log, optimized-lookup-weighted }. otherwise bestie, those weights are just... decorative. π
π REPORTING BUGS π
found a bug? don't be shy, report it to <hfst-bugs@helsinki.fi> or directly to our bug tracker at: <https://github.com/hfst/hfst/issues> π
- hfst-lexc home page: <https://github.com/hfst/hfst/wiki/HfstLexc>
- General help using HFST software: <https://github.com/hfst/hfst/wiki>
β COPYRIGHT β
Copyright Β© 2017 University of Helsinki, License GPLv3: GNU GPL version 3 <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
like, literally no warranty. she's free and she's honest about it π«Ά
and that's the whole page, bestie!! πβ¨ππ¦πΈπ
this manual comes from the HFST crew, dated August 2018, and it's page HFST-LEXC(1) β go forth and compile, you absolute legend ππβ
π¦ where this page comes from
- debian bookworm: hfst 3.16.0-5 Β· GPL-3.0-or-later
- debian trixie: hfst 3.16.2-1+b1 Β· GPL-3.0-or-later
- nixos 26.05: hfst 3.16.2
- opensuse-leap 16.0: hfst 3.16.0-bp160.1.11 Β· Apache-2.0 AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-only AND GPL-3.0-or-later AND GPL-3.0-only
- ubuntu jammy: hfst 3.15.4-2 Β· GPL-3.0-or-later
- ubuntu noble: hfst 3.16.0-5build4 Β· GPL-3.0-or-later
- ubuntu questing: hfst 3.16.2-1
- ubuntu resolute: hfst 3.16.2-1build2 Β· GPL-3.0-or-later
- ubuntu stonking: hfst 3.17.1-6 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms