Exemplo n.º 1
0
 def __getitem__(self, name):
     if not dict.__contains__(self, name):
         with included_local_path():
             dict.__setitem__(
                 self, name,
                 TrieTree.load(path.join(self.dataset_dir, name)))
     return dict.__getitem__(self, name)
Exemplo n.º 2
0
 def __getitem__(self, name):
     if not dict.__contains__(self, name):
         with included_local_path():
             dict.__setitem__(self, name,
                              TrieTree.load(path.join(self.dataset_dir,
                              name)))
     return dict.__getitem__(self, name)
Exemplo n.º 3
0
def dict_converter(dct):
    with included_local_path():
        d = {}
        for key in dct:
            d[key] = import_string(dct[key])
        return d
Exemplo n.º 4
0
def dict_converter(dct):
    with included_local_path():
        d = {}
        for key in dct:
            d[key] = import_string(dct[key])
        return d