nltk.classify.TextCat
¶
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 |
Attributes¶
fingerprints |
|
last_distances |