'Attempt to intialize Stanford Word Segmenter for the specified language
using the STANFORD_SEGMENTER and STANFORD_MODELS environment variables'

def default_config(self, lang):

    search_path = ()
    if os.environ.get(u'STANFORD_SEGMENTER'):
        search_path = {os.path.join(os.environ.get(u'STANFORD_SEGMENTER'), u'data')}
    self._dict = None
    self._sihan_corpora_dict = None
    self._sihan_post_processing = u'false'
    if (lang == u'ar'):
        self._java_class = u'edu.stanford.nlp.international.arabic.process.ArabicSegmenter'
        model = u'arabic-segmenter-atb+bn+arztrain.ser.gz'
    elif (lang == u'zh'):
        self._java_class = u'edu.stanford.nlp.ie.crf.CRFClassifier'
        model = u'pku.gz'
        self._sihan_post_processing = u'true'
        path_to_dict = u'dict-chris6.ser.gz'
        try:
            self._dict = find_file(path_to_dict, searchpath=search_path, url=_stanford_url, verbose=False, env_vars=(u'STANFORD_MODELS',))
        except LookupError:
            raise LookupError((u"Could    not    find    '%s'    (tried    using    env.    variables    STANFORD_MODELS    and    <STANFORD_SEGMENTER>/data/)" % path_to_dict))
        sihan_dir = u'./data/'
        try:
            path_to_sihan_dir = find_dir(sihan_dir, url=_stanford_url, verbose=False, env_vars=(u'STANFORD_SEGMENTER',))
            self._sihan_corpora_dict = os.path.join(path_to_sihan_dir, sihan_dir)
        except LookupError:
            raise LookupError((u"Could    not    find    '%s'    (tried    using    the    STANFORD_SEGMENTER    environment    variable)" % sihan_dir))
    else:
        raise LookupError((u"Unsupported    language    '%'" % lang))
    try:
        self._model = find_file(model, searchpath=search_path, url=_stanford_url, verbose=False, env_vars=(u'STANFORD_MODELS', u'STANFORD_SEGMENTER'))
    except LookupError:
        raise LookupError((u"Could    not    find    '%s'    (tried    using    env.    variables    STANFORD_MODELS    and    <STANFORD_SEGMENTER>/data/)" % model))
