public void buildSentences(String in)
{
//*-- extract the sentence boundaries
if (in.length() > Constants.DOC_LENGTH_MAXLIMIT) in = in.substring(0, Constants.DOC_LENGTH_MAXLIMIT - 1);
ArrayList<Token> tokenList = new ArrayList<Token>(); ArrayList<Token> whiteList = new ArrayList<Token>();
Tokenizer tokenizer = TOKENIZER_FACTORY.tokenizer(in.toCharArray(), 0, in.length() );
tokenizer.tokenize(tokenList, whiteList);
tokens = new String[tokenList.size()]; tokenList.toArray(tokens);
whites = new String[whiteList.size()]; whiteList.toArray(whites);
sentenceBoundaries = SENTENCE_MODEL.boundaryIndices(tokens, whites);
int numPossibleSentences = sentenceBoundaries.length;