ó <¿CVc@s’dZddlmZmZddlZddlmZddlmZddl m Z ddl m Z ddl mZd e fd „ƒYZdS( uv An NLTK interface for the n-gram statistics gathered from the corpora for each language using An Crubadan. There are multiple potential applications for the data but this reader was created with the goal of using it in the context of language identification. For details about An Crubadan, this data, and its potential uses, see: http://borel.slu.edu/crubadan/index.html iÿÿÿÿ(tprint_functiontunicode_literalsN(tPY3(tpath(t CorpusReader(tFreqDist(tZipFilePathPointertCrubadanCorpusReadercBs_eZdZdZiZdd d„Zd„Zd„Zd„Z d„Z d„Z d „Z RS( uK A corpus reader used to access language An Crubadan n-gram files. u table.txtuutf8cCs6tt|ƒj||ddƒg|_|jƒdS(Ntencodinguutf8(tsuperRt__init__t_lang_mapping_datat_load_lang_mapping_data(tselftroottfileidsRttagset((sm/private/var/folders/cc/xm4nqn811x9b50x1q_zpkmvdjlphkp/T/pip-build-FUwmDn/nltk/nltk/corpus/reader/crubadan.pyR 's cCs3||jkr(|j|ƒ|j|s