Constructor and Description |
---|
StemmingIterator(BufferedReader br,
Stemmer stemmer)
Constructs an iterator to stem all the tokens in the reader.
|
StemmingIterator(Iterator<String> tokens,
Stemmer stemmer)
Constructors an iterator that stems all of the provided tokens
|
StemmingIterator(String str,
Stemmer stemmer)
Constructs an iterator to stem all the tokens in the string.
|
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext()
Returns
true if there is another word to return. |
String |
next()
Returns the next word from the reader.
|
void |
remove()
Throws an
UnsupportedOperationException if called. |
public StemmingIterator(String str, Stemmer stemmer)
public StemmingIterator(BufferedReader br, Stemmer stemmer)
public boolean hasNext()
true
if there is another word to return.public String next()
public void remove()
UnsupportedOperationException
if called.Copyright © 2012. All Rights Reserved.