Did I find the right examples for you? yes no

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

src/s/i/silpa-HEAD/src/silpa/modules/spellchecker/spellchecker.py   silpa(Download)
from utils import detect_lang, silpautils, silpalogger
from modules.inexactsearch import inexactsearch
from indexer import DictionaryIndex
from common.silparesponse import SilpaResponse
import urllib
    def train(self, features=None):
        if not self.dictionaries.has_key(self.lang):
            index = DictionaryIndex()
            self.dictionaries[self.lang] = index.load_index(self.lang + ".dic")
 

src/s/p/spellchecker-0.4/spellchecker/core.py   spellchecker(Download)
import urllib
 
from indexer import DictionaryIndex
from langdetect import _detect_lang
 
    def train(self, features=None):
        if not self.lang in self.dictionaries:
            index = DictionaryIndex()
            self.dictionaries[self.lang] = index.load_index(self.lang + ".dic")