|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.terrier.terms.StemmerTermPipeline
org.terrier.terms.SnowballStemmer
public abstract class SnowballStemmer
Classic Snowball stemmer implmented by Snowball.
| Field Summary | |
|---|---|
protected static Object[] |
emptyArgs
|
protected String |
language
The language that we're currently stemming in |
protected org.tartarus.snowball.SnowballProgram |
stemmer
The actual Snowball object that does the stemming |
protected Method |
stemMethod
The appropriate method. |
| Fields inherited from class org.terrier.terms.StemmerTermPipeline |
|---|
next |
| Constructor Summary | |
|---|---|
protected |
SnowballStemmer(String StemLanguage,
TermPipeline next)
Creates a new stemmer object for the language StemLanguage. |
| Method Summary | |
|---|---|
String |
stem(String term)
Stems the given term and returns the stem |
| Methods inherited from class org.terrier.terms.StemmerTermPipeline |
|---|
processTerm, reset |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected org.tartarus.snowball.SnowballProgram stemmer
protected Method stemMethod
protected String language
protected static final Object[] emptyArgs
| Constructor Detail |
|---|
protected SnowballStemmer(String StemLanguage,
TermPipeline next)
StemLanguage - Name of the language to generate the stemmer for. Must be a valid Snowball stemmer language.next - The next object in the term pipeline| Method Detail |
|---|
public String stem(String term)
term - the term to be stemmed.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||