|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.knowledgebooks.nlp_utils.Stemmer
public class Stemmer
Copyright 2002-2008 by Mark Watson. All rights reserved. This software is not public domain. It can be legally used under either of the following licenses: 1. KnowledgeBooks.com Non Commercial Royality Free License
| Constructor Summary | |
|---|---|
Stemmer()
|
|
| Method Summary | |
|---|---|
void |
add(char ch)
Add a character to the word being stemmed. |
void |
add(char[] w,
int wLen)
Adds wLen characters to the word being stemmed contained in a portion of a char[] array. |
char[] |
getResultBuffer()
Returns a reference to a character buffer containing the results of the stemming process. |
int |
getResultLength()
Returns the length of the word resulting from the stemming process. |
void |
stem()
Stem the word placed into the Stemmer buffer through calls to add(). |
java.lang.String |
stemOneWord(java.lang.String word)
|
java.util.List<java.lang.String> |
stemString(java.lang.String str)
|
java.lang.String |
toString()
After a word has been stemmed, it can be retrieved by toString(), or a reference to the internal buffer can be retrieved by getResultBuffer and getResultLength (which is generally more efficient.) |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Stemmer()
| Method Detail |
|---|
public void add(char ch)
public void add(char[] w,
int wLen)
public java.lang.String toString()
toString in class java.lang.Objectpublic int getResultLength()
public char[] getResultBuffer()
public void stem()
public java.util.List<java.lang.String> stemString(java.lang.String str)
public java.lang.String stemOneWord(java.lang.String word)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||