added trigram model for grapheme segments