HFST-OPTIMIZED-LOOKUP(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-optimized-lookup β€” NAME πŸ’–

okay bestie, welcome to the hfst-optimized-lookup page, which lives in the User Commands section of the manual (section 1, the classics ✨). Here's the official NAME line, verbatim, no edits, because we respect the source:

hfst-optimized-lookup - =Usage: hfst-optimized-lookup [OPTIONS] TRANSDUCER


πŸ¦‹ SYNOPSIS πŸ¦‹

hfst-optimized-lookup [OPTIONS] TRANSDUCER

✨ DESCRIPTION ✨

So what does this icon actually do? It runs a transducer on standard input β€” one word per line, bestie, one word per line β€” and prints out the analyses. Slay. πŸ’…

⚠️ NOTE, and this is important, do not skip it: hfst-optimized-lookup does lookup from left to right, which is opposite to xfst and foma lookup, which is carried out from right to left. So if you want to do lookup in a similar way as xfst and foma, you gotta invert the transducer first. No cap. πŸ™ˆ

Now the options, all of them, in order, because we don't gatekeep here:

  • -h, --help β€” print this help message 🫢
  • -V, --version β€” print version information πŸ‘‘
  • -v, --verbose β€” be verbose (yes, talk to me)
  • -q, --quiet β€” don't be verbose (this is the default, lowkey chill mode)
  • -s, --silent β€” same as quiet 🀫
  • -e, --echo β€” echo inputs (super useful if you're redirecting lots of output to a file, fr fr)
  • -w, --show-weights β€” print final analysis weights (if any)
  • -u, --unique β€” suppress duplicate analyses (we only need one of each, periodt)
  • -n N, --analyses=N β€” output no more than N analyses (and if the transducer is weighted, it's the N best analyses) 🌈
  • -b, --beam=B β€” output only analyses whose weight is within B from the best analysis
  • -t, --time-cutoff=S β€” limit search after having used S seconds per input ⏳
  • -x, --xerox β€” Xerox output format (this is the default)
  • -f, --fast β€” be as fast as possible. ⚑ (but heads up: with this option enabled, -u and -n don't work, and output won't be ordered by weight β€” it's giving chaos, but fast chaos)
  • -p, --pipe-mode[=STREAM] β€” control input and output streams.

The rules of the game, bestie:

  • N must be a positive integer.
  • B must be a non-negative float.
  • S must be a non-negative float. The default, 0.0, indicates no cutoff.
  • Options -n and -b are combined with AND, i.e. they both restrict the output. Both. Not one or the other. Both. πŸ’€

And about STREAM:

STREAM can be { input, output, both }. If not given, it defaults to {both}. Input is read interactively line by line from the user. If you redirect input from a file, use --pipe-mode=input. And --pipe-mode=output is ignored on non-windows platforms. πŸͺŸπŸš«


😭 REPORTING BUGS 😭

Found a bug? Report bugs to hfst-bugs@helsinki.fi β€” they wanna hear about it, for real.


and that's the whole page, bestie!! πŸŽ€ a cute little sign-off for you: this manual page is hfst-optimized-lookup 1.2, dated Aug 22 2018 13:57:15, with copyright (C) 2009 University of Helsinki. And the page itself is from the HFST collection, dated August 2018. obsessed with her honestly. πŸ’œπŸ¦‹βœ¨ go run a transducer, you got this πŸ‘‘

πŸ“¦ where this page comes from