

def __init__(self):
    if (not re):
        raise EnvironmentError("classify.textcat requires the regex module that supports unicode. Try '$ pip install regex' and see https://pypi.python.org/pypi/regex for further details.")
    from nltk.corpus import crubadan
    self._corpus = crubadan
    for lang in self._corpus.langs():
        self._corpus.lang_freq(lang)

dataset/ETHPy150Open nltk/nltk/nltk/classify/textcat.py TextCat.__init__/original