if(isException(s.toString()))
continue;
// save sentence
sentences.add(new Sentence(s.toString(),s_offs,Sentence.TYPE_PROSE));
// move start
//st = i+1;
s = new StringBuffer();
s_offs = offset+i+1;
}
}
// mop up in case you don't have a period at the end
if(s.toString().trim().length() >0){
sentences.add(new Sentence(s.toString(),s_offs,Sentence.TYPE_PROSE)); //+"." bad idea, we don't want to mess with offsets
}
return sentences;
}