Grammalecte  Check-in [c88bf29423]

Overview
Comment:[graphspell] ibdawg: fix lexicographer import
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | graphspell | salxg
Files: files | file ages | folders
SHA3-256: c88bf29423cecd09e5aa2674d3de1097d3042a5a94f60003ab260a66f399e9d6
User & Date: olr on 2020-08-31 10:44:53
Other Links: branch diff | manifest | tags
Context
2020-09-07
09:48
[graphspell][fx] lexicographer: update check-in: f614419de2 user: olr tags: fx, graphspell, salxg
2020-08-31
10:48
[graphspell] ibdawg: fix lexicographer import (cherrypick from safxg) check-in: a9ed4298f2 user: olr tags: trunk, graphspell
10:44
[graphspell] ibdawg: fix lexicographer import check-in: c88bf29423 user: olr tags: graphspell, salxg
10:42
[fr] ajustements check-in: be5e80db98 user: olr tags: fr, salxg
Changes

Modified graphspell/ibdawg.py from [4f7f19d7d1] to [01e0cc9f3f].

153
154
155
156
157
158
159
160

161
162
163
164
165
166
167
153
154
155
156
157
158
159

160
161
162
163
164
165
166
167







-
+








        self.bAcronymValid = False
        self.bNumAtLastValid = False

        # lexicographer module ?
        self.lexicographer = None
        try:
            self.lexicographer = importlib.import_module("graphspell.lexgraph_"+self.sLangCode)
            self.lexicographer = importlib.import_module(".lexgraph_"+self.sLangCode, "grammalecte.graphspell")
        except ImportError:
            print("# No module <graphspell.lexgraph_"+self.sLangCode+".py>")


    def _initBinary (self):
        "initialize with binary structure file"
        if self.by[0:17] != b"/grammalecte-fsa/":