|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Decomposition
Class for splitting text into specific parts.
SentenceDecompositionICU4J
,
SentenceDecompositionOpenNLP
,
WordDecompositionICU4J
,
WordDecompositionDelim
,
WordDecompositionOpenNLP
,
WordTokenization
,
CharacterChunkingDecomposition
,
WordChunkingDecomposition
,
CharacterNGramDecomposition
,
WordNGramDecomposition
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. |
Method Detail |
---|
java.util.List<java.lang.String> getStrings(java.lang.String text, boolean asSubstring)
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)}
java.util.List<Span> getSpans(java.lang.String text)
Span
s with start/end index in original string.
text
- The original text to decompose.
Span
with start/end index in the original string.Decomposition#getStrings(String, boolean)}
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |