Reference

Class

RiTa

Name

RiTa.splitSentences

Description Splits 'text' into sentences (according to PENN Treebank conventions)
Syntax
RiTa.splitSentences(text);
RiTa.splitSentences(text, regex);
Parameters
Stringtext the text to be split
String OR Regex (in JS)regex (optional) the pattern to be used for word tokenization
Returns
String[]array of sentences
Example
RiTa.splitSentences(""The boy went fishing.", he said. Then he went away.");
Platform Java / Javascript