ngram and NgramTable classes