Reference

Class

RiTa

Name

sentences

Description Splits 'text' into sentences (according to Penn Treebank conventions)
Example
RiTa.sentences("The boy went fishing.", he said. Then he went away.");
Parameters
Stringthe text to be split
String or Regex (JS), String or java.util.regex.Pattern (Java)regex (optional) the pattern to be used for word tokenization
Returns
String[]an array of sentences
Syntax
RiTa.sentences(text);
RiTa.sentences(text, regex);
Platform Java / JavaScript