private void export_text(JCas jcas){
  StringBuilder text=new StringBuilder();
  String documentId;
  for (  Token token : select(jcas,Token.class)) {
    text.append(token.getCoveredText() + " ");
  }
  try {
    DocumentMetaData d=DocumentMetaData.get(jcas);
    documentId=d.getDocumentId();
  }
 catch (  IllegalArgumentException e) {
    documentId="generic-" + textId;
  }
  writeToFile("text",textId,documentId,text.toString());
}

private void export_text ( JCas jcas ) { StringBuilder text = new StringBuilder ( ) ; String documentId ; for ( Token token : select ( jcas , Token . class ) ) { text . append ( token . getCoveredText ( ) + " " ) ; } try { DocumentMetaData d = DocumentMetaData . get ( jcas ) ; documentId = d . getDocumentId ( ) ; } catch ( IllegalArgumentException e ) { documentId = "generic-" + textId ; } writeToFile ( "text" , textId , documentId , text . toString ( ) ) ; }
write text . tab < br > id | some - text - identifier | text
