Class ManualTagger

java.lang.Object
org.languagetool.tagging.ManualTagger
All Implemented Interfaces:
WordTagger

public class ManualTagger extends Object implements WordTagger
A tagger that reads the POS information from a plain (UTF-8) text file. This makes it possible for the user to edit the text file to let the system know about new words or missing readings in the *.dict file.

File Format: fullform baseform postags (tab separated)

Author:
Daniel Naber
See Also:
  • Constructor Details

  • Method Details

    • tag

      public List<TaggedWord> tag(String word)
      Look up a word's baseform (lemma) and POS information.
      Specified by:
      tag in interface WordTagger
      Parameters:
      word - the word to be tagged
      Returns:
      the possible POS tags, or an empty list