Statistical methods in NLP: MaxEnt decoder, Empirical Expectation calculator