Grammalecte  Check-in [cf413a7637]

Overview
Comment:[build][bug] DARG builder: regex for morphologies
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | build | rg
Files: files | file ages | folders
SHA3-256: cf413a7637e4db850f21b6c9938d69fb7b2fc0d27dd3f77a486083fbc04a2599
User & Date: olr on 2018-06-04 08:41:48
Other Links: branch diff | manifest | tags
Context
2018-06-04
09:40
[fr] test for regex pattern in graph check-in: 4f25d4fa97 user: olr tags: fr, rg
08:41
[build][bug] DARG builder: regex for morphologies check-in: cf413a7637 user: olr tags: build, rg
08:25
[graphspell] French ad hoc suggestions check-in: 8e3fa05b02 user: olr tags: graphspell, rg
Changes

Modified darg.py from [589e9bbc94] to [2f0859dae4].

159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
        dNode = {}
        dReValue = {}
        dReMorph = {}
        dRules = {}
        dLemmas = {}
        for sArc, oNode in self.dArcs.items():
            if sArc.startswith("~~") and len(sArc) > 2:
                dReMorph[sArc[1:]] = oNode.__hash__()
            elif sArc.startswith("~") and len(sArc) > 1:
                dReValue[sArc[1:]] = oNode.__hash__()
            elif sArc.startswith(">") and len(sArc) > 1:
                dLemmas[sArc[1:]] = oNode.__hash__()
            elif sArc.startswith("##"):
                dRules[sArc[1:]] = oNode.__hash__()
            else:







|







159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
        dNode = {}
        dReValue = {}
        dReMorph = {}
        dRules = {}
        dLemmas = {}
        for sArc, oNode in self.dArcs.items():
            if sArc.startswith("~~") and len(sArc) > 2:
                dReMorph[sArc[2:]] = oNode.__hash__()
            elif sArc.startswith("~") and len(sArc) > 1:
                dReValue[sArc[1:]] = oNode.__hash__()
            elif sArc.startswith(">") and len(sArc) > 1:
                dLemmas[sArc[1:]] = oNode.__hash__()
            elif sArc.startswith("##"):
                dRules[sArc[1:]] = oNode.__hash__()
            else: