Wrote train method of parser. Currently uses lossless binarization.