Created unigram class with same methods as nltk.ngram