|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.aitools.ie.decomposition.word.WordDecompositionDelim
public class WordDecompositionDelim
This class uses a JFlex lexer to extract words out of a given text. To modify the rules for extraction, edit the file word.flex in the package jFlex and use the build.xml file in the same package to recreate the JFlex lexer.
WordDecompositionICU4J
,
WordDecompositionOpenNLP
Constructor Summary | |
---|---|
WordDecompositionDelim()
This class uses a JFlex lexer to extract words out of a given text. |
Method Summary | |
---|---|
java.util.List<Span> |
getSpans(java.lang.String text)
Analyses a string and split it in parts. |
java.util.List<java.lang.String> |
getStrings(java.lang.String text,
boolean asSubstring)
Analyses a string and split it in parts. |
static void |
main(java.lang.String[] args)
TEST |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WordDecompositionDelim()
Method Detail |
---|
public java.util.List<Span> getSpans(java.lang.String text)
Decomposition
Span
s with start/end index in original string.
getSpans
in interface Decomposition
text
- The original text to decompose.
Span
with start/end index in the original string.Decomposition#getStrings(String, boolean)}
public java.util.List<java.lang.String> getStrings(java.lang.String text, boolean asSubstring)
Decomposition
getStrings
in interface Decomposition
text
- The original text to decompose.asSubstring
- If true, returned strings in list are substrings of input text
else explicit copies are returned. A substring is a pointer to the
original string and start/end position. A string copy is an exact
copy of the part.Decomposition#getSpans(String)}
public static void main(java.lang.String[] args)
args
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |