Package smile.nlp.tokenizer
Class BreakIteratorSentenceSplitter
java.lang.Object
smile.nlp.tokenizer.BreakIteratorSentenceSplitter
- All Implemented Interfaces:
SentenceSplitter
A sentence splitter based on the java.text.BreakIterator, which supports
multiple natural languages (selected by locale setting).
-
Constructor Summary
ConstructorDescriptionConstructor for the default locale.BreakIteratorSentenceSplitter
(Locale locale) Constructor for the given locale. -
Method Summary
-
Constructor Details
-
BreakIteratorSentenceSplitter
public BreakIteratorSentenceSplitter()Constructor for the default locale. -
BreakIteratorSentenceSplitter
Constructor for the given locale.- Parameters:
locale
- the locale.
-
-
Method Details
-
split
Description copied from interface:SentenceSplitter
Splits the text into sentences.- Specified by:
split
in interfaceSentenceSplitter
- Parameters:
text
- the text.- Returns:
- the sentences.
-