modified bigram to use character sequences instead of word sequences