nltk.classify.TextCat

class nltk.classify.TextCat[source]

Methods

__init__()
calc_dist(lang, trigram, text_profile) Calculate the “out-of-place” measure between the
guess_language(text) Find the language with the min distance
lang_dists(text) Calculate the “out-of-place” measure between
profile(text) Create FreqDist of trigrams within text
remove_punctuation(text) Get rid of punctuation except apostrophes