public class WordTokenizer extends CharacterDelimitedTokenizer
-delimiters <value> The delimiters to use (default ' \r\n\t.,;:'"()?!').
| Constructor and Description |
|---|
WordTokenizer() |
| Modifier and Type | Method and Description |
|---|---|
String |
getRevision()
Returns the revision string.
|
String |
globalInfo()
Returns a string describing the stemmer
|
boolean |
hasMoreElements()
Tests if this enumeration contains more elements.
|
static void |
main(String[] args)
Runs the tokenizer with the given options and strings to tokenize.
|
String |
nextElement()
Returns the next element of this enumeration if this enumeration object has
at least one more element to provide.
|
void |
tokenize(String s)
Sets the string to tokenize.
|
delimitersTipText, getDelimiters, getOptions, listOptions, setDelimiters, setOptionsrunTokenizer, tokenizepublic String globalInfo()
globalInfo in class Tokenizerpublic boolean hasMoreElements()
hasMoreElements in interface Enumeration<String>hasMoreElements in class Tokenizerpublic String nextElement()
nextElement in interface Enumeration<String>nextElement in class Tokenizerpublic void tokenize(String s)
public String getRevision()
public static void main(String[] args)
args - the commandline options and strings to tokenizeCopyright © 2016 University of Waikato, Hamilton, NZ. All Rights Reserved.