sentence1: the decoder uses a cky-style parsing algorithm to integrate the language model scores .
sentence2: the parsing algorithm is extended to handle translation candidates and to incorporate language model scores via cube pruning .