HFST-LOOKUP(1)
β¨ hfst-lookup β perform transducer lookup (apply) π
okay bestie, welcome to hfst-lookup(1), a User Commands moment, and she's iconic. buckle up π
π SYNOPSIS
hfst-lookup [OPTIONS...] [INFILE]
π DESCRIPTION
perform transducer lookup (apply)
β οΈ NOTE:hfst-lookupdoes lookup from left to right as opposed toxfstandfomalookup which is carried out from right to left. In order to do lookup in a similar way asxfstandfoma, usehfst-flookupinstead. no cap, this is the plot twist of the whole page π
β¨ OPTIONS β¨
π«Ά Common options:
-h,--helpβ Print help message-V,--versionβ Print version info-v,--verboseβ Print verbosely while processing-q,--quietβ Only print fatal erros and requested output-s,--silentβ Alias of--quiet
π Input/Output options:
-i,--input=INFILEβ Read input transducer from INFILE-o,--output=OUTFILEβ Write output to OUTFILE-p,--pipe-mode[=STREAM]β Control input and output streams
π¦ Lookup options:
-I,--input-strings=SFILEβ Read lookup strings from SFILE-O,--output-format=OFORMATβ Use OFORMAT printing results sets-e,--epsilon-format=EPSβ Print epsilon as EPS-F,--input-format=IFORMATβ Use IFORMAT parsing input-x,--statisticsβ Print statistics-X,--xfst=VARIABLEβ Toggle xfst VARIABLE-c,--cycles=INTβ How many times to follow input epsilon cycles (only for non-lookup-optimized transducers)-n,--max-number=INTβ Maximum number of results printed for each input (only for lookup-optimized transducers)-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 (only for lookup-optimized transducers)-C,--cascade=CASCADEβ How multiple transducers in input are handled-P,--progressβ Show neat progress bar if possible
If OUTFILE or INFILE is missing or -, standard streams will be used. Format of result depends on format of INFILE. OFORMAT is one of {xerox,cg,apertium}, xerox being default. IFORMAT is one of {text,spaced,apertium}, default being text, unless OFORMAT is apertium. VARIABLEs relevant to lookup are {print-pairs,print-space,quote-special,show-flags,obey-flags}. Input epsilon cycles are followed by default INT=5 times. Epsilon is printed by default as an empty string. B must be a non-negative float. S must be a non-negative float. The default, 0.0, indicates no cutoff. If the input contains several transducers, a set containing results from all transducers is printed for each input string.
CASCADE must be one of { union, priority-union, composition }. If not specified, defaults to {union}.
STREAM can be { input, output, both }. If not given, defaults to {both}. If input file is not specified with -I, input is read interactively line by line from the user. If you redirect input from a file, use --pipe-mode=input. --pipe-mode=output is ignored on non-windows platforms.
π Todo:
Support --xfst=obey-flags for optimized lookup format. Support --cycles for optimized lookup format.
π Known bugs:
'quote-special' quotes spaces that come from 'print-space'
π REPORTING BUGS
Report bugs to <hfst-bugs@helsinki.fi> or directly to our bug tracker at: <https://github.com/hfst/hfst/issues>
- hfst-lookup home page: <https://github.com/hfst/hfst/wiki/HfstLookup>
- 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. periodt π
okay that's the whole page bestie, you ate that π«Ά this was the HFST release from August 2018, mwah π
π¦ 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