|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcsli.util.nlp.StemmerFactory
public class StemmerFactory
A factory that returns a word stemmer.
| Field Summary | |
|---|---|
static String |
DEFAULT_KEY
|
| Constructor Summary | |
|---|---|
StemmerFactory()
|
|
| Method Summary | |
|---|---|
static Stemmer |
getNewStemmer()
Get a new stemmer of the class specified by the default util.nlp.stemmer config key |
static Stemmer |
getNewStemmer(String key)
Get a new stemmer of the class specified by the given config key OR class name |
static Stemmer |
getStemmer()
Get the static instance of the default stemmer; if none exists, a new one will be created, of the class specified by the default util.nlp.stemmer config key |
static Stemmer |
getStemmer(String key)
Get the static instance of the stemmer associated with the given config key OR class name; if none exists, create a new one |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String DEFAULT_KEY
| Constructor Detail |
|---|
public StemmerFactory()
| Method Detail |
|---|
public static Stemmer getStemmer()
public static Stemmer getStemmer(String key)
key - the name of the desired class, or a config key which points at one
public static Stemmer getNewStemmer()
public static Stemmer getNewStemmer(String key)
key - the name of the desired class, or a config key which points at one
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||