@Override public void process(JCas aJCas) throws AnalysisEngineProcessException {
  String text=aJCas.getDocumentText();
  if (text.length() > 0) {
    Sentence sentence=new Sentence(aJCas);
    sentence.setBegin(0);
    sentence.setEnd(text.length());
    sentence.addToIndexes(aJCas);
  }
}

@ Override public void process ( JCas aJCas ) throws AnalysisEngineProcessException { String text = aJCas . getDocumentText ( ) ; if ( text . length ( ) > 0 ) { Sentence sentence = new Sentence ( aJCas ) ; sentence . setBegin ( 0 ) ; sentence . setEnd ( text . length ( ) ) ; sentence . addToIndexes ( aJCas ) ; } }
create one sentence over the full text unless the text is empty .
