Phrase-based decoding based on stack heuristic.