|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object pt.tumba.spell.DefaultWordFinder pt.tumba.spell.XMLWordFinder
public class XMLWordFinder
A word finder for XMLdocuments, which searches text for sequences of letters, but ignores tags.
DefaultWordFinder
Field Summary |
---|
Fields inherited from class pt.tumba.spell.DefaultWordFinder |
---|
currentSegmentPos, currentWord, currentWordPos, nextSegmentPos, nextWord, nextWordPos, sentenceIterator, solveHardCases, startsSentence, text |
Constructor Summary | |
---|---|
XMLWordFinder()
Constructor for XMLWordFinder. |
|
XMLWordFinder(java.lang.String inText)
Constructor for XMLWordFinder. |
Method Summary | |
---|---|
java.lang.String |
currentSegment()
Returns the current text segment from the input. |
java.lang.String |
next()
This method scans the text from the end of the last word, and returns a String corresponding to the next word. |
Methods inherited from class pt.tumba.spell.DefaultWordFinder |
---|
current, getText, hasNext, ignore, ignore, ignore, ignore, isWordChar, isWordChar, lookAhead, nextSegment, replace, replaceBigram, replaceSegment, setText, splitSegments, splitWords, startsSentence, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public XMLWordFinder(java.lang.String inText)
inText
- A String with the input text to tokenize.public XMLWordFinder()
Method Detail |
---|
public java.lang.String currentSegment()
currentSegment
in class DefaultWordFinder
public java.lang.String next()
next
in class DefaultWordFinder
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |