Updating compute_likelihood for GrammarProbHypothesis; not yet done.