|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.aitools.ie.decomposition.word.jflex.WordLexerWrapper
public class WordLexerWrapper
Use this class an interface to WordLexer
. As WordLexer
is
automatically created, there are several methods and constructors to be
hidden. So WordLexer
is nut public.
Constructor Summary | |
---|---|
WordLexerWrapper(java.lang.String text,
boolean asSubstring)
Use this class an interface to WordLexer . |
Method Summary | |
---|---|
java.util.List<Span> |
getSpans()
Get the list of recognized words as Spans. |
java.util.List<java.lang.String> |
getWords()
Get the list of recognized words. |
void |
scan()
Start scanning the text. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WordLexerWrapper(java.lang.String text, boolean asSubstring)
WordLexer
. As WordLexer
is
automatically created, there are several methods and constructors to be
hidden. So WordLexer
is nut public.
text
- The text to be lexed.asSubstring
- If asSubstring == true
the Lexer keeps recognized
words in a list of text.substring()
. Otherwise
the list is filled by
new String(text.substring())
.Method Detail |
---|
public void scan() throws java.io.IOException
java.io.IOException
public java.util.List<Span> getSpans()
Span
consists of the
start and end index of a word in the given text.
public java.util.List<java.lang.String> getWords()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |