Commit 138f891c authored by Christos Christodoulopoulos's avatar Christos Christodoulopoulos
Browse files

Removed the catch of deleting annotations

parent 778b2b4d
......@@ -236,16 +236,6 @@ public class JBCorpus {
if (annotationsForContext.size() == 1) contextToAnnotation.remove(indexInContext);
else {
annotationsForContext.remove(currentAnnotation);
// This shouldn't happen
if (annotationsForContext.size() == 0) {
JOptionPane.showMessageDialog(null, "0 annotations remaining! Please check the console output." +
"\nAnnotation will not be deleted.", "Error",
JOptionPane.ERROR_MESSAGE);
System.err.println("Annotation ID: " + currentAnnotationIndex +
" (" + currentAnnotation.getIndexInContext() + ")");
System.err.println(currentAnnotation.toProbankString());
return;
}
contextToAnnotation.put(indexInContext, annotationsForContext);
}
annotations.remove(currentAnnotationIndex);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment