

def guess_language(self, text):
    ' Find the language with the min distance\n            to the text and return its ISO 639-3 code '
    text.last_distances = self.lang_dists(text)
    return min(self.last_distances, key=self.last_distances.get)

dataset/ETHPy150Open nltk/nltk/nltk/classify/textcat.py TextCat.guess_language/VarMisuse@14/55 `self`->`text`