At this point, it suffices to say that we require a parser which has the prefix property, i.e., which parses incrementally, from left to right.
we use an Earley-style probabilistic parser, which outputs Viterbi parses (Stolcke, 1995).