home << dhlab reference << dhlab.ngram

nb_ngram#

from dhlab.ngram import nb_ngram

Functions#

nb_ngram(terms[, corpus, smooth, years, ...])

Extract N-gram frequencies from given terms and years.

ngram_conv(ngrams[, smooth, years, mode])

Construct a dataframe with ngram mean frequencies per year over a given time period.

ngram_conv_old(ngrams[, smooth, years, mode])

Construct a dataframe with ngram mean frequencies per year over a given time period.