APERTIUM(1)

Okay bestie, this is the manual page for apertium (APERTIUM(1), General Commands Manual) and it is about to be SO good πŸ’–βœ¨


✨ NAME ✨

apertium β€” machine translation application platform 🌸

πŸŽ€ SYNOPSIS πŸŽ€

apertium [-au] [-d datadir] [-f format] language-pair [infile [outfile]]

πŸ’… DESCRIPTION πŸ’…

Okay so apertium is the app most people will actually use, because it makes the apertium/lt-toolbox tools way easier to use for machine translation. Main character energy πŸ‘‘

It's giving one friendly front door πŸšͺ. lt-toolbox handles all the lexical processing modules and tools, and apertium handles the rest of the engine, and this tool wraps both so the end user only has to deal with one thing 🫢.

The modules in the apertium machine translation architecture run in this order, and I'm obsessed with how they flow πŸ”₯:

  • de-formatter β€” Separates the text to be translated from the format information.
  • morphological-analyser β€” Tokenizes the text in surface forms.
  • part-of-speech tagger β€” Chooses one surface forms among homographs.
  • lexical transfer module β€” Reads each source-language lexical form and delivers a corresponding target-language lexical form.
  • structural transfer module β€” Detects fixed-length patterns of lexical forms (chunks or phrases) needing special processing due to grammatical divergences between the two languages and performs the corresponding transformations.
  • morphological generator β€” Delivers a target-language surface form for each target-language lexical form, by suitably inflecting it.
  • post-generator β€” Performs orthographical operations such as contractions and apostrophations.
  • re-formatter β€” Restores the format information encapsulated by the de-formatter into the translated text and removes the encapsulation sequences used to protect certain characters in the source text.

πŸ¦‹ OPTIONS πŸ¦‹

  • -d datadir β€” Where the linguistic data lives πŸ“š. If you don't set it, it just uses the expected installation path, so no stress.
  • language-pair β€” The language pair, written as LANG1–LANG2 (for instance β€œes-ca” or β€œca-es”) 🌈.
  • -f format β€” Picks the format of the input and output files πŸ“. Here are your options:
    • txt (default value) β€” Input and output files are plain text. Basic, but iconic πŸ’œ.
    • html β€” Input and output files are in β€œhtml” format. This is the one the vast majority of web browsers accept 🌐.
    • html-noent β€” Input and output files are in β€œhtml” format, but native encoding characters stay as they are instead of getting turned into HTML text entities ✨.
    • rtf β€” Input and output files are in β€œrtf” format. The accepted flavor is the one generated by Microsoft WordPad and Microsoft Office up to and including Office 97 🫠.
  • -u β€” Turns off marking of unknown words with the β€˜*’ character. Bye bye stars ⭐.
  • -H β€” Turns on header-detection. This only works in some language pairs 🧚.
⚠️ Bestie, watch out: -H will lead to stray β€˜β‘β€™ characters in pairs that don't support it. Not a vibe.
  • -a β€” Turns on marking of disambiguated words with the β€˜=’ character 🎯.

πŸ“ FILES πŸ“

These are the two files that can be used with this command πŸ—‚οΈ:

  • -m memory.tmx β€” Uses a translation memory to recycle translations ♻️.
  • -o direction β€” The translation direction used with the translation memory. By default, β€œdirection” is used instead 🧠.
  • -l β€” Lists the available translation directions and exits. The direction is typically LANG1–LANG2, but check modes.xml in language data if you want the deets πŸ“œ.
  • infile β€” Input file. Defaults to stdin πŸ“₯.
  • outfile β€” Output file. Defaults to stdout πŸ“€.

🌸 SEE ALSO 🌸

apertium-tagger(1), lt-comp(1), lt-expand(1), lt-proc(1) πŸ”—

Copyright © 2005, 2006 Universitat d'Alacant / Universidad de Alicante. This is free software 🫢. You can 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! πŸ‘»


Bye bestie, you're officially an apertium expert now πŸ¦‹πŸ’… Apertium, March 8, 2006, APERTIUM(1) 🌈✨