smile.nlp.tokenizer
Class SimpleParagraphSplitter
- java.lang.Object
-
- smile.nlp.tokenizer.SimpleParagraphSplitter
-
- All Implemented Interfaces:
- ParagraphSplitter
public class SimpleParagraphSplitter extends java.lang.Object implements ParagraphSplitter
This is a simple paragraph splitter. Given a string, it returns a list of strings, where each element is a paragraph.The beginning of a paragraph is indicated by
- the beginning of the content, that is, the paragraph is the first content in the document, or
- exactly one blank line preceding the paragraph text
- the end of the content, that is, the paragraph is the last content in the document, or
- one or more blank lines following the paragraph text
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description static SimpleParagraphSplittergetInstance()Returns the singleton instance.java.lang.String[]split(java.lang.String text)Split text into sentences.
-
-
-
Method Detail
-
getInstance
public static SimpleParagraphSplitter getInstance()
Returns the singleton instance.
-
split
public java.lang.String[] split(java.lang.String text)
Description copied from interface:ParagraphSplitterSplit text into sentences.- Specified by:
splitin interfaceParagraphSplitter
-
-
DataMelt 3.0 © DataMelt by jWork.ORG