Describir: A General Approximation-Optimization Approach to Large Margin Estimation of HMMs