de.danielnaber.languagetool.tagging
Class ManualTagger

Object
  extended by ManualTagger

public class ManualTagger
extends Object

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

Constructor Summary
ManualTagger(InputStream file)
           
 
Method Summary
 String[] lookup(String term)
          Look up a word's baseform and POS information.
 
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ManualTagger

public ManualTagger(InputStream file)
             throws IOException
Throws:
IOException
Method Detail

lookup

public String[] lookup(String term)
Look up a word's baseform and POS information.

Parameters:
term -
Returns:
an array with the baseform (at psoitino 0, 2, ...) and the POS information (at psoitino 1, 3, ...) or null if the word is unknown


Copyright © 2005-2007 Daniel Naber