Menu

#34 Indicate document name in exception output

closed
nobody
5
2018-06-11
2007-03-09
Adam Funk
No

When an exception occurs in a PR, it would be useful if the error output in the Messages pane indicated the document being processed.

Discussion

  • Johann Petrak

    Johann Petrak - 2007-08-08

    Logged In: YES
    user_id=1472154
    Originator: NO

    This could be done by catching ExecutionException in SerialAnalyserController and ConditionalSerialAnalyserController and printing the document there. Then either re-throw the exception so that it gets caught somewhere higher up which currently leads to termination of the corpus processing, or just print the stack trace and continue processing of the corpus.
    In some cases, the latter might be preferable: it is frustrating to heave a corpus left just nearly fully processed because one document did not work with a PR (e.g. not finding a sentence annotation might throw an exception in minipar plugin). On the other hand, some serious condition might then cause hundreds or thousands of exceptions to get logged. A compromise might be to accept only a maximum of a dozen such errors before terminating processing the corpus.

     
  • Mark Greenwood

    Mark Greenwood - 2018-06-11
    • status: open --> accepted
    • Group: --> Next_Release_(example)
     
  • Mark Greenwood

    Mark Greenwood - 2018-06-11
    • status: accepted --> closed
     

Log in to post a comment.