public interface SentenceTokenizer extends Tokenizer
Modifier and Type | Method and Description |
---|---|
void |
setSingleLineBreaksMarksParagraph(boolean lineBreakParagraphs) |
boolean |
singleLineBreaksMarksPara() |
List<String> |
tokenize(String text)
Tokenize the given string to sentences.
|
void setSingleLineBreaksMarksParagraph(boolean lineBreakParagraphs)
lineBreakParagraphs
- if true
, single line breaks are assumed to end a paragraph,
with false
, only two ore more consecutive line breaks end a paragraphboolean singleLineBreaksMarksPara()