Frontend for bigram parser