A transformer-based model for default prediction in mid-cap corporate markets