|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.aitools.ie.stemming.SnowballStemmer
public class SnowballStemmer
This class is a wrapper that gives access to the stemmers provided by Snowball.
Currently the following languages are supported: Danish, Dutch, English, Finnish, French, German, Hungarian, Italian, Norwegian, Portuguese, Romanian, Spanish, Swedish, Turkish.
See also http://snowball.tartarus.org.
Constructor Summary | |
---|---|
SnowballStemmer(java.util.Locale language)
Constructs a SnowballStemmer for the specified language. |
Method Summary | |
---|---|
java.lang.String |
process(java.lang.String word)
Builds the stem of the specified word. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SnowballStemmer(java.util.Locale language)
language
- Language of the text to be stemmed.
StemmerException
- If the specified language is not supported by Snowball.
java.lang.IllegalArgumentException
- If language == null
.Method Detail |
---|
public java.lang.String process(java.lang.String word)
Stemmer
process
in interface Stemmer
word
- Word to be stemmed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |