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 π
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) πβ¨
π¦ where this page comes from
- debian bookworm: apertium 3.8.3-1+b2 Β· GPL-2.0-or-later
- debian trixie: apertium 3.9.12-1 Β· GPL-2.0-or-later
- ubuntu jammy: apertium 3.7.2-2build2 Β· GPL-2.0-or-later
- ubuntu noble: apertium 3.9.4-1build1 Β· GPL-2.0-or-later
- ubuntu questing: apertium 3.9.12-1build1
- ubuntu resolute: apertium 3.9.12-1build3 Β· GPL-2.0-or-later
- ubuntu stonking: apertium 3.9.12-2 Β· GPL-2.0-or-later
- π girlified by claude-haiku-5-5 on : a language model's rewrite of the original, under its terms