Package org.languagetool.tagging
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:
ManualSynthesizer
-
-
Constructor Summary
Constructors Constructor Description ManualTagger(InputStream inputStream)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<TaggedWord>
tag(String word)
Look up a word's baseform (lemma) and POS information.
-
-
-
Constructor Detail
-
ManualTagger
public ManualTagger(InputStream inputStream) throws IOException
- Throws:
IOException
-
-
Method Detail
-
tag
public List<TaggedWord> tag(String word)
Look up a word's baseform (lemma) and POS information.- Specified by:
tag
in interfaceWordTagger
- Parameters:
word
- the word to be tagged- Returns:
- the possible POS tags, or an empty list
-
-