Statistical methods in NLP: one-vs-all and all-pair MaxEnt trainer/decoder