org.eml.sir.util
Class IdentityStemmer

java.lang.Object
  extended byorg.eml.sir.util.Stemmer
      extended byorg.eml.sir.util.IdentityStemmer
All Implemented Interfaces:
java.io.Serializable

public class IdentityStemmer
extends Stemmer

Stemmer which returns the input String as the result.

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

Constructor Summary
IdentityStemmer()
          Create a new instance of IdentityStemmer.
 
Method Summary
 java.util.HashMap stem(java.util.ArrayList words)
          Return a Hashmap with each word as key and value.
 java.lang.String stem(java.lang.String word)
          Return the word as stem.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IdentityStemmer

public IdentityStemmer()
Create a new instance of IdentityStemmer.

Method Detail

stem

public java.lang.String stem(java.lang.String word)
Return the word as stem.

Specified by:
stem in class Stemmer

stem

public java.util.HashMap stem(java.util.ArrayList words)
Return a Hashmap with each word as key and value.

Specified by:
stem in class Stemmer
Parameters:
words - ArrayList of Strings.
Returns:
HashMap with words as keys and their stemms as value.