To avoid this, we filter our grammar according to the following constraints, chosen to balance grammar size and performance on our development set: If there are multiple initial phrase pairs containing the same set of alignments, only the smallest is kept.
unaligned words are not allowed at the edges of phrases.