Grammalecte  Check-in [a054196a67]

Overview
Comment:[graphspell] don’t validate acronyms by default
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | graphspell
Files: files | file ages | folders
SHA3-256: a054196a6734811aeedbea621809ce2d10a2967a82bd13d33869828fd7706bd9
User & Date: olr on 2018-07-05 12:45:22
Other Links: manifest | tags
Context
2018-07-05
12:48
[build] setup.py update check-in: 65a6a08553 user: olr tags: trunk, build
12:45
[graphspell] don’t validate acronyms by default check-in: a054196a67 user: olr tags: trunk, graphspell
12:44
[graphspell][js] trim useless spaces check-in: 2f18864bbc user: olr tags: trunk, graphspell
Changes

Modified graphspell/ibdawg.py from [87f324b718] to [98abc07d28].

132
133
134
135
136
137
138
139

140
141
142
143
144
145
146
132
133
134
135
136
137
138

139
140
141
142
143
144
145
146







-
+







            self.stem = self._stem3
            self._lookupArcNode = self._lookupArcNode3
            self._getArcs = self._getArcs3
            self._writeNodes = self._writeNodes3
        else:
            raise ValueError("  # Error: unknown code: {}".format(self.nCompressionMethod))

        self.bAcronymValid = True
        self.bAcronymValid = False
        self.bNumAtLastValid = False

    def _initBinary (self):
        "initialize with binary structure file"
        if self.by[0:17] != b"/grammalecte-fsa/":
            raise TypeError("# Error. Not a grammalecte-fsa binary dictionary. Header: {}".format(self.by[0:9]))
        if not(self.by[17:18] == b"1" or self.by[17:18] == b"2" or self.by[17:18] == b"3"):