|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectptstemmer.Stemmer
public abstract class Stemmer
Abstract class that provides the main features to all the stemmers
| Nested Class Summary | |
|---|---|
static class |
Stemmer.StemmerType
|
| Constructor Summary | |
|---|---|
Stemmer()
|
|
| Method Summary | |
|---|---|
void |
clearIgnoreList()
Clear the contents of the ignore list |
void |
disableCaching()
Disable and delete the LRU Cache |
void |
enableCaching(int size)
Create a LRU Cache, caching the last size stems |
java.lang.String[] |
getPhraseStems(java.lang.String phrase)
Performs stemming on the phrase, using a simple space tokenizer |
java.lang.String |
getWordStem(java.lang.String word)
Performs stemming on the word |
void |
ignore(java.util.Collection<java.lang.String> words)
Add Collection of words to ignore list |
void |
ignore(java.lang.String... words)
Add list of words to ignore list |
boolean |
isCachingEnabled()
Check if LRU Cache is enabled |
static Stemmer |
StemmerFactory(Stemmer.StemmerType stype)
Stemmer construction factory |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Stemmer()
| Method Detail |
|---|
public static Stemmer StemmerFactory(Stemmer.StemmerType stype)
throws PTStemmerException
stype -
PTStemmerExceptionpublic void enableCaching(int size)
size stems
size - public void disableCaching()
public boolean isCachingEnabled()
public void ignore(java.lang.String... words)
words - public void ignore(java.util.Collection<java.lang.String> words)
words - public void clearIgnoreList()
public java.lang.String[] getPhraseStems(java.lang.String phrase)
phrase, using a simple space tokenizer
phrase -
public java.lang.String getWordStem(java.lang.String word)
word
word -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||