Text this: Systematic treatment of failures using multilayer perceptrons