Grammalecte  Check-in [c2f4d1d4ee]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:[graphspell] code cleaning (pylint)
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | graphspell
Files: files | file ages | folders
SHA3-256:c2f4d1d4ee934598dd299df38dc8eb451660232985680f06238632230991519d
User & Date: olr 2019-05-12 10:00:47
Context
2019-05-12
10:01
[core][fr] code cleaning (pylint) check-in: 63b8e1b23a user: olr tags: core, fr, trunk
10:00
[graphspell] code cleaning (pylint) check-in: c2f4d1d4ee user: olr tags: graphspell, trunk
2019-05-11
18:50
[core][fr] code cleaning (pylint) check-in: 16611cf664 user: olr tags: core, fr, trunk
Changes

Changes to graphspell/dawg.py.

155
156
157
158
159
160
161






162
163
164
165
166
167
168
        if cStemming == "A":
            self.funcStemming = st.changeWordWithAffixCode
        elif cStemming == "S":
            self.funcStemming = st.changeWordWithSuffixCode
        else:
            self.funcStemming = st.noStemming







        # build
        lWord.sort()
        oProgBar = ProgressBar(0, len(lWord))
        for aEntry in lWord:
            self.insert(aEntry)
            oProgBar.increment(1)
        oProgBar.done()







>
>
>
>
>
>







155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
        if cStemming == "A":
            self.funcStemming = st.changeWordWithAffixCode
        elif cStemming == "S":
            self.funcStemming = st.changeWordWithSuffixCode
        else:
            self.funcStemming = st.noStemming

        # calculated later
        self.nBytesNodeAddress = 1
        self.nBytesArc = 0
        self.nBytesOffset = 0
        self.nMaxOffset = 0

        # build
        lWord.sort()
        oProgBar = ProgressBar(0, len(lWord))
        for aEntry in lWord:
            self.insert(aEntry)
            oProgBar.increment(1)
        oProgBar.done()