org.eml.sir.util
Class TreeTagger

java.lang.Object
  extended byorg.eml.sir.util.Tagger
      extended byorg.eml.sir.util.TreeTagger
All Implemented Interfaces:
java.io.Serializable

public class TreeTagger
extends Tagger

Class that offers methods for tagging. It wrapps the functions of the TreeTagger. This programm must be installed.

Author:
Hendrik Niederlich (EML-R)
See Also:
Serialized Form

Constructor Summary
TreeTagger()
          Create a new instance of TreeTagger.
 
Method Summary
 java.util.ArrayList getBasicForm(java.util.ArrayList words)
          Return a list of basic forms of the word with the same index in the parameter list.
 java.lang.String getBasicForm(java.lang.String word)
          Return a basic form of a word.
 java.util.ArrayList getPartOfSpeech(java.util.ArrayList words)
          Return a list with Characters representing the part of speech of the word with the same index in the parameter list.
 char getPartOfSpeech(java.lang.String word)
          Return the part of speech of a word.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TreeTagger

public TreeTagger()
Create a new instance of TreeTagger.

Method Detail

getPartOfSpeech

public char getPartOfSpeech(java.lang.String word)
Return the part of speech of a word.

Specified by:
getPartOfSpeech in class Tagger
Returns:
Part of speech constant of the Constant class.

getBasicForm

public java.lang.String getBasicForm(java.lang.String word)
Return a basic form of a word.

Returns:
Part of speech constant of the Constant class.

getPartOfSpeech

public java.util.ArrayList getPartOfSpeech(java.util.ArrayList words)
Return a list with Characters representing the part of speech of the word with the same index in the parameter list.

Specified by:
getPartOfSpeech in class Tagger
Parameters:
words - List of words.
Returns:
List of parts of speech of that words.

getBasicForm

public java.util.ArrayList getBasicForm(java.util.ArrayList words)
Return a list of basic forms of the word with the same index in the parameter list.

Parameters:
words - List of words.
Returns:
List of basic forms of that words.