예제 #1
0
 private void nextButtonActionPerformed(
     java.awt.event.ActionEvent evt) { // GEN-FIRST:event_nextButtonActionPerformed
   if (this.sentIndex < (corpusText.size() - 1)) {
     this.sentIndex++;
     backButton.setEnabled(true);
     showAnnotation();
   }
   if (this.sentIndex == corpusText.size()) nextButton.setEnabled(false);
 } // GEN-LAST:event_nextButtonActionPerformed
예제 #2
0
 private void loadText(String text) {
   this.corpusText = textReader.read(text);
   this.sentIndex = 0;
   this.writer = null;
   if (corpusText.size() > 1) nextButton.setEnabled(true);
   /*for (Sentence s : corpusText) {
       s = annotator.annotate(s);
   }*/
   showAnnotation();
 }