nltk.classify.TextCat.calc_dist

TextCat.calc_dist(lang, trigram, text_profile)[source]

Calculate the “out-of-place” measure between the text and language profile for a single trigram