public class FileWordTokenizer extends AbstractWordTokenizer
Any takers to do this efficiently?? doesn't need to replace any words to start with. I need this to get an idea of how quick the spell checker is.
currentWord, finder, sentenceIterator, wordCount| Constructor and Description |
|---|
FileWordTokenizer(java.io.File inputFile)
Creates a new FileWordTokenizer object.
|
FileWordTokenizer(java.io.File inputFile,
WordFinder finder)
Creates a new FileWordTokenizer object and associate a WordFinder to it's
processing.
|
| Modifier and Type | Method and Description |
|---|---|
void |
replaceWord(java.lang.String s)
Replaces the current word token
|
getContext, getCurrentWordCount, getCurrentWordEnd, getCurrentWordPosition, hasMoreWords, isNewSentence, nextWordpublic FileWordTokenizer(java.io.File inputFile)
inputFile - the file to work uponpublic FileWordTokenizer(java.io.File inputFile,
WordFinder finder)
inputFile - the file to word upon.finder - the specialize processing for words.public void replaceWord(java.lang.String s)
replaceWord in interface WordTokenizerreplaceWord in class AbstractWordTokenizers - the new stringWordNotFoundException - current word not yet set.