Grammalecte  Check-in [8d8f667d69]

Overview
Comment:[graphspell][py] wrong comment
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | graphspell | rg
Files: files | file ages | folders
SHA3-256: 8d8f667d6938d550f823d8fb5979b6fb4a217c0cb55c907115b0074987d12306
User & Date: olr on 2018-05-23 11:32:37
Other Links: branch diff | manifest | tags
Context
2018-05-23
11:33
[graphspell][js][bug] return Array instead of Set check-in: a54634de77 user: olr tags: graphspell, rg
11:32
[graphspell][py] wrong comment check-in: 8d8f667d69 user: olr tags: graphspell, rg
10:29
[graphspell][js] data memorization check-in: e7244953ec user: olr tags: graphspell, rg
Changes

Modified graphspell/spellchecker.py from [b09975dd6b] to [2c7f3d8dbe].

199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
            lMorph.extend(self.oPersonalDic.getMorph(sWord))
        if self.bStorage:
            self._dMorphologies[sWord] = lMorph
            self._dLemmas[sWord] = set([ s[1:s.find(" ")]  for s in lMorph ])
        return lMorph

    def getLemma (self, sWord):
        "retrieves lemmas (Warning: if <self.bStorage> then lemmas are returned with the preceding sign “>”)"
        if self.bStorage:
            if sWord not in self._dLemmas:
                self.getMorph(sWord)
            return self._dLemmas[sWord]
        return set([ s[1:s.find(" ")]  for s in self.getMorph(sWord) ])

    def suggest (self, sWord, nSuggLimit=10):







|







199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
            lMorph.extend(self.oPersonalDic.getMorph(sWord))
        if self.bStorage:
            self._dMorphologies[sWord] = lMorph
            self._dLemmas[sWord] = set([ s[1:s.find(" ")]  for s in lMorph ])
        return lMorph

    def getLemma (self, sWord):
        "retrieves lemmas"
        if self.bStorage:
            if sWord not in self._dLemmas:
                self.getMorph(sWord)
            return self._dLemmas[sWord]
        return set([ s[1:s.find(" ")]  for s in self.getMorph(sWord) ])

    def suggest (self, sWord, nSuggLimit=10):