Efficient multiple hyperparameter learning for log-linear models