uk.ac.shef.dcs.oak.jate.util.control
Class Lemmatizer

java.lang.Object
  extended by uk.ac.shef.dcs.oak.jate.util.control.Normalizer
      extended by uk.ac.shef.dcs.oak.jate.util.control.Lemmatizer

public class Lemmatizer
extends Normalizer

Lemmatizer is a specific type of Nrmaliser and returns a string to its dictionary root.


Constructor Summary
Lemmatizer()
           
 
Method Summary
 java.lang.String getLemma(java.lang.String value, java.lang.String pos)
           
 java.lang.String normalize(java.lang.String value)
          Lemmatise a phrase or word.
 java.lang.String normalizeContent(java.lang.String in)
          Lemmatise every word in the input string
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Lemmatizer

public Lemmatizer()
Method Detail

getLemma

public java.lang.String getLemma(java.lang.String value,
                                 java.lang.String pos)
Parameters:
value - original word
pos - the part of speech of the last word
Returns:
the lemma of original word

normalize

public java.lang.String normalize(java.lang.String value)
Lemmatise a phrase or word. If a phrase, only lemmatise the most RHS word.

Specified by:
normalize in class Normalizer
Parameters:
value -
Returns:

normalizeContent

public java.lang.String normalizeContent(java.lang.String in)
Lemmatise every word in the input string

Specified by:
normalizeContent in class Normalizer
Parameters:
in -
Returns:
the lemmatised string