HFST-LEXC(1)

πŸ“¦
version 3.17.1 Β· 2 versions
  • 3.17.1 Β· debian bookworm, debian trixie, nixos 26.05, opensuse-leap 16.0, ubuntu jammy, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking (latest)
  • 3.17.3 Β· nixpkgs unstable
, in debian bookworm, debian trixie, nixos 26.05, opensuse-leap 16.0, ubuntu jammy, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’… 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 --withFlags is used, minimize the number of flags. less is more, bestie
  • -R, --renameFlags β€” if --withFlags and --minimizeFlags are 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> πŸ›


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