Towards Automated Error Analysis: Learning to Characterize Errors