Did I find the right examples for you? yes no

All Samples(2)  |  Call(0)  |  Derive(0)  |  Import(2)

src/w/e/webstruct-0.2/webstruct/gazetteers/features.py   webstruct(Download)
# -*- coding: utf-8 -*-
from __future__ import absolute_import
from webstruct.gazetteers.geonames import GAZETTEER_FORMAT
from webstruct.features.utils import LongestMatchGlobalFeature
 
    def __init__(self, filename, featname, format=None):
        import marisa_trie
 
        self.filename = filename
        self.data = marisa_trie.RecordTrie(format or GAZETTEER_FORMAT)

src/w/e/webstruct-HEAD/webstruct/gazetteers/features.py   webstruct(Download)
# -*- coding: utf-8 -*-
from __future__ import absolute_import
from webstruct.gazetteers.geonames import GAZETTEER_FORMAT
from webstruct.features.global_features import LongestMatchGlobalFeature
 
    def __init__(self, filename, featname, format=None):
        import marisa_trie
 
        self.filename = filename
        self.data = marisa_trie.RecordTrie(format or GAZETTEER_FORMAT)