Overview
| Comment: | [graphspell][py] spellchecker: getSimilarEntries with parameter nSuggLimit | 
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive | 
| Timelines: | family | ancestors | descendants | both | graphspell | multid | 
| Files: | files | file ages | folders | 
| SHA3-256: | 
d08f3c473ed4dd2b4a4c5c7ac46c6bff | 
| User & Date: | olr on 2018-03-27 08:53:51 | 
| Other Links: | branch diff | manifest | tags | 
Context
| 
   2018-03-27 
 | ||
| 08:54 | [graphspell][js] spellchecker: getSimilarEntries with parameter nSuggLimit check-in: e02a5c60ae user: olr tags: graphspell, multid | |
| 08:53 | [graphspell][py] spellchecker: getSimilarEntries with parameter nSuggLimit check-in: d08f3c473e user: olr tags: graphspell, multid | |
| 
   2018-03-26 
 | ||
| 19:03 | [lo] lexicon editor: update, +tags information, +search check-in: 5109354c10 user: olr tags: lo, multid | |
Changes
Modified graphspell/spellchecker.py from [3ef8ba9d14] to [42f77c6a07].
| ︙ | ︙ | |||
211 212 213 214 215 216 217  | 
        if self.bCommunityDic:
            print("-----")
            self.oCommunityDic.drawPath(sWord)
        if self.bPersonalDic:
            print("-----")
            self.oPersonalDic.drawPath(sWord)
 | | | | | |  | 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227  | 
        if self.bCommunityDic:
            print("-----")
            self.oCommunityDic.drawPath(sWord)
        if self.bPersonalDic:
            print("-----")
            self.oPersonalDic.drawPath(sWord)
    def getSimilarEntries (self, sWord, nSuggLimit=10):
        "return a list of tuples (similar word, stem, morphology)"
        lResult = self.oMainDic.getSimilarEntries(sWord, nSuggLimit)
        if self.bExtendedDic:
            lResult.extend(self.oExtendedDic.getSimilarEntries(sWord, nSuggLimit))
        if self.bCommunityDic:
            lResult.extend(self.oCommunityDic.getSimilarEntries(sWord, nSuggLimit))
        if self.bPersonalDic:
            lResult.extend(self.oPersonalDic.getSimilarEntries(sWord, nSuggLimit))
        return lResult
 |