LT-PROC(1)

πŸ’– LT-PROC(1) β€” the lt-proc era πŸ’–

okay bestie, pull up a chair, because we're talking about lt-proc, the lexical processor for Apertium, from the General Commands Manual. this is the girl who does the actual ~thinking~ about words. she's a whole icon. let's go πŸ¦‹


✨ NAME ✨

lt-proc β€” lexical processor for Apertium. that's it, that's the girl. πŸ’…


✨ SYNOPSIS ✨

lt-proc
        [-a | -b | -o | -c | -d | -e | -g | -h | -p | -s | -t | -v | -h | -z | -w]
        [-W] [-N -N] [-L -N] [-i icx_file] fst_file
        [input_file [output_file]]

(and yes, -h really does show up twice up there. she's just that into helping, i guess. we don't question it. πŸ™ˆ)


✨ DESCRIPTION ✨

so lt-proc is the application that serves up the four lexical processing functionalities. four. a whole squad:

  • morphological analyser (option -a)
  • lexical transfer (option -n)
  • morphological generator (option -g)
  • post-generator (option -p)

and how does she do all that? not by guessing, bestie. she reads binary files that contain a compact and efficient representation of dictionaries β€” a class of finite-state transducers called augmented letter transducers. and those files? they're generated by lt-comp(1). so like, lt-comp makes the dictionaries, lt-proc uses them. it's giving collaborative. it's giving duo. 🫢

now pls pay attention because this part matters: some characters are special chars used for format and encapsulation β€” specifically [, ], $, ^, /, +. if you actually want to use them literally, you have to escape them. for instance, [...] get ignored, and the format of a linefeed is ^...$. lowkey important. don't forget it. no cap. ⚠️


✨ OPTIONS ✨

she has a LOT of them. every one of them. let's go down the whole list, no skipping, periodt.

  • -a, --analysis β€” tokenizes the text into surface forms (aka lexical units, the way they actually show up in real texts) and then, for every single surface form, hands you back one or more lexical forms made up of lemma, lexical category, and morphological inflection info. and ngl, the tokenization is not straightforward, for two reasons: contractions exist, and multi-word lexical units exist. for contractions, the system takes in one surface form and spits out the corresponding sequence of lexical forms. multi-word surface forms get analysed left-to-right, longest-match style. those multi-word surface forms can be invariable (think a multi-word preposition or conjunction) or inflected β€” like, in es, β€œechaban de menos”, β€œthey missed”, is a form of the imperfect indicative tense of the verb β€œechar de menos”, β€œto miss”. 😭 she's so smart. there's also limited support for some kinds of discontinuous multi-word units. and single-word surface form analysis gives you output like these examples:

β€œcantar” β†’ β€œ^cantar/cantar<vblex><inf>$” or β€œdaba” β†’ β€œ^daba/dar<vblex><pii><p1><sg>/dar<vblex><pii><p3><sg>$”.

  • -b, --bilingual β€” does lexical transference, attaching queues of morphological symbols that aren't specified in the dictionaries. just like analysis mode, she supports multiple lexical forms in the target language for a given lexical form in the source language. typically works with the output of apertium-pretransfer(1). πŸ’«
  • -o, --surf-bilingual β€” same vibe as -b, BUT it takes input from apertium-tagger(1) -p, with surface forms, and if the lexical form isn't found in the bilingual dictionary, it just outputs the surface form of the word. she's flexible like that. 🌸
  • -O, --surf-bilingual-keep β€” same as -o, but it also outputs the surface form before the readings. extra. we love extra. πŸ‘‘
  • -c, --case-sensitive β€” uses the literal case of the incoming characters. caps lock respected fr fr.
  • -d, --debugged-gen β€” morphological generation, but with all the stuff. yes. all of it. every last crumb. πŸ“
  • -e, --decompose-compounds β€” tries to treat unknown words as compounds, and decompose them. she's doing detective work. πŸ”
  • -w, --dictionary-case β€” uses the case information contained in the lexicon, instead of the surface case. heads up: this one is only applied in analysis mode.
  • -g, --generation β€” delivers a target-language surface form for each target-language lexical form, by suitably inflecting it. generation era. ✨
  • -n, --non-marked-gen β€” morphological generation (like -g) but without the unknown word marks (that's the asterisk *).
  • -b, --tagged-gen β€” morphological generation (like -g) but retaining part-of-speech tags.
  • -p, --post-generation β€” performs orthographical operations like contractions and apostrophations. the post-generator is usually dormant (she just copies the input to the output 😴) until a special alarm symbol contained in some target-language surface forms wakes her up to perform a particular string transformation if necessary β€” and then she goes right back to sleep. nap queen. main character energy. πŸ’œ
  • -s, --sao β€” input processing is in orthoepikon (previously sao) annotation system format: https://orthoepikon.sf.net.
  • -t, --transliteration β€” apply a transliteration dictionary.
  • -i icx_file, --ignored-chars icx_file β€” ignores characters specified in the file icx_file. out of sight, out of mind. πŸ™ˆ
  • -z, --null-flush β€” flush output on the null character.
  • -C, --careful-case β€” use dictionary case if it's present, else surface. she checks first. careful girlie. πŸŽ€
  • -N, --analyses β€” output no more than N analyses (and if the transducer is weighted, it's the N best analyses). only the best for you.
  • -L, --weight-classes β€” output no more than N best weight classes (where analyses with equal weight constitute a class). groups only. 🫢
  • -W, --show-weights β€” print final analysis weights (if any).
  • -v, --version β€” display the version number.
  • -h, --help β€” display this help.

✨ FILES ✨

  • input_file β€” the input compiled dictionary. πŸ—‚οΈ

✨ SEE ALSO ✨

apertium(1), apertium-tagger(1), lt-comp(1), lt-expand(1) β€” the whole friend group. go say hi. πŸ¦‹


Copyright Β© 2005, 2006 Universitat d'Alacant / Universidad de Alicante. this is free software. you may redistribute copies of it under the terms of the GNU General Public License: https://www.gnu.org/licenses/gpl.html. πŸ’–


✨ BUGS ✨

Many... lurking in the dark and waiting for you! πŸ’€πŸ˜­

not even joking bestie, "Many... lurking in the dark and waiting for you!" is the actual bug report. they really said no further comment. be careful out there. πŸ”₯

and that's the whole page!! πŸ’– huge shoutout to Apertium and to that March 23, 2006 date β€” the girl has been serving lexical processing since 2006 and she's still iconic. mwah. πŸŽ€βœ¨πŸ‘‘

πŸ“¦ where this page comes from