APERTIUM-TAGGER(1)

✨ APERTIUM-TAGGER(1) ✨

Okay bestie, this is the manual page for apertium-tagger πŸ’… It's the part-of-speech tagger and trainer for Apertium, so it can tag your text or train a model, depending on which flags you throw at it 🧚


🌸 NAME

apertium-tagger is the part-of-speech tagger and trainer for Apertium πŸ’–


πŸ¦‹ SYNOPSIS

apertium-tagger [options] -g serialized_tagger [input [output]]
apertium-tagger [options] -r iterations corpus serialized_tagger
apertium-tagger [options] -s iterations dictionary corpus tagger_spec
                serialized_tagger tagged_corpus untagged_corpus
apertium-tagger [options] -s 0 dictionary tagger_spec serialized_tagger
                tagged_corpus untagged_corpus
apertium-tagger [options] -s 0 -u model serialized_tagger tagged_corpus
apertium-tagger [options] -t iterations dictionary corpus tagger_spec
                serialized_tagger

πŸ’œ DESCRIPTION

Okay so apertium-tagger is the app that handles the Apertium part-of-speech tagger, and whether it's training or tagging depends entirely on the calling options πŸ”₯ Lowkey important detail: it only reads from standard input if you use --tagger or -g πŸ™ˆ


πŸŽ€ MODES

  • -g, --tagger β€” Tags your input text using the Viterbi algorithm 🫢
  • -r n, --retrain n β€” Retrains the model with n extra Baum-Welch iterations (unsupervised). Not compatible with -u (--unigram)! πŸ’€
  • -s n, --supervised n β€” Starts the parameters off against a hand-tagged text (supervised) using the maximum likelihood estimate method, then runs n iterations of the Baum-Welch training algorithm (unsupervised) ✨ The CRP argument can only be left out when n = 0.
  • -t n, --train n β€” Initializes the parameters with Kupiec's method (unsupervised), then runs n iterations of the Baum-Welch training algorithm (unsupervised) 🌈

🧚 MODELS

  • -u, --unigram=MODEL β€” Uses the unigram algorithm MODEL from https://coltekin.net/cagri/papers/trmorph-tools.pdf πŸ“„
  • -w, --sliding-window β€” Uses the Light Sliding Window algorithm πŸͺŸ
  • -x, --perceptron β€” Uses the averaged perceptron algorithm πŸ“

⭐ OPTIONS

  • -d, --debug β€” Prints errors (if there are any) or debug messages while it's running πŸ”
  • -e, --skip-on-error β€” Used with -xs to skip certain types of errors in the training corpus πŸ™ƒ
  • -f, --first β€” Used with -g (--tagger) so the tagger gives you all the lexical forms of each word, with the chosen one sitting in the first place (after the lemma) πŸ‘‘
  • -m, --mark β€” Marks the disambiguated words πŸ’…
  • -p, --show-superficial β€” Prints the superficial form of the word alongside the lexical form in the output stream πŸ¦‹
  • -z, --null-flush β€” Used with -g (--tagger) to flush the output after getting each null character 🌊
  • --help β€” Displays a help message 🫢

πŸ“ FILES

These are the kinds of files each option uses πŸ—‚οΈ

  • dictionary β€” Full expanded dictionary file πŸ“–
  • corpus β€” Training text corpus file πŸ“
  • tagger_spec β€” Tagger specification file, in XML format 🧾
  • serialized_tagger β€” Tagger data file, built during training and used while tagging πŸ’Ύ
  • tagged_corpus β€” Hand-tagged text corpus 🏷️
  • untagged_corpus β€” Untagged text corpus, the morphological analysis of the hand-tagged corpus, used together with the -s option 🧩
  • input β€” Input file, standard input by default πŸ“₯
  • output β€” Output file, standard output by default πŸ“€

πŸ”— SEE ALSO

Go check these out too πŸ‘€βœ¨


Copyright Β© 2005, 2006 Universitat d'Alacant / Universidad de Alicante. This is free software πŸ•ŠοΈ You're allowed to 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! πŸ’€πŸ‘»


Okay that's the whole tea β˜•πŸ’– Source: Apertium, February 22, 2021, APERTIUM-TAGGER(1). Stay iconic, bestie! 🌈✨