Exponentiated Gradient Algorithms for Large-margin Structured Classification