Latent structured SVM imlementation based on pystruct