public final class PorterStemmer extends Object
| Constructor and Description |
|---|
PorterStemmer() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
List<String> |
process(List<String> input) |
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.)
|
public void add(char ch)
public void add(char[] w,
int wLen)
public String toString()
public int getResultLength()
public char[] getResultBuffer()
public List<String> process(List<String> input) throws IOException
IOExceptionCopyright © 2021 CDAP Licensed under the Apache License, Version 2.0.