Differences From Artifact [dbd02131cc]:
- File graphspell/spellchecker.py — part of check-in [d205a5a601] at 2018-02-21 19:13:21 on branch trunk — [graphspell][py] new functions: getLemma() and countWordsOccurrences() (user: olr, size: 6195) [annotate] [blame] [check-ins using] [more...]
To Artifact [4787045da6]:
- File graphspell/spellchecker.py — part of check-in [aae2892638] at 2018-02-24 08:20:35 on branch trunk — [graphspell] spellchecker: new function getTokenizer() (user: olr, size: 6321) [annotate] [blame] [check-ins using] [more...]
| ︙ | |||
44 45 46 47 48 49 50 51 52 53 54 55 56 57 | 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 | + + + + + |
print("Error: <" + sfDictionary + "> not loaded.")
traceback.print_exc()
return None
def loadTokenizer (self):
self.oTokenizer = tokenizer.Tokenizer(self.sLangCode)
def getTokenizer (self):
if not self.oTokenizer:
self.loadTokenizer()
return self.oTokenizer
def setMainDictionary (self, sfDictionary):
"returns True if the dictionary is loaded"
self.oMainDic = self._loadDictionary(sfDictionary)
return bool(self.oMainDic)
def setExtendedDictionary (self, sfDictionary):
"returns True if the dictionary is loaded"
|
| ︙ |