NLP assignment 2, train a probabilistic context-free grammar (PCFG) for syntactic parsing