csli.util.nlp.stem
Class AdvancedPorterStemmer
java.lang.Object
csli.util.nlp.Stemmer
csli.util.nlp.stem.AdvancedPorterStemmer
- All Implemented Interfaces:
- Serializable
public class AdvancedPorterStemmer
- extends Stemmer
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AdvancedPorterStemmer
public AdvancedPorterStemmer()
stem
public String stem(String str)
- Description copied from class:
Stemmer
- Stem a word string. Should return NULL on error.
- Specified by:
stem in class Stemmer
- Parameters:
str - the word string to stem
- Returns:
- the word stem (root form) as a string
step1a
protected String step1a(String str)
step1b
protected String step1b(String str)
step1b2
protected String step1b2(String str)
step1c
protected String step1c(String str)
step2
protected String step2(String str)
step3
protected String step3(String str)
step4
protected String step4(String str)
step5a
protected String step5a(String str)
step5b
protected String step5b(String str)
endsWithS
protected boolean endsWithS(String str)
containsVowel
protected boolean containsVowel(String str)
isVowel
public boolean isVowel(char c)
endsWithDoubleConsonent
protected boolean endsWithDoubleConsonent(String str)
stringMeasure
protected int stringMeasure(String str)
endsWithCVC
protected boolean endsWithCVC(String str)