Overview
Comment: | [graphspell][py] ibdawg: init directly from an object (JSON) |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | graphspell | multid |
Files: | files | file ages | folders |
SHA3-256: |
efd7bb0171c2350d26fe3371251ea666 |
User & Date: | olr on 2018-02-28 10:34:28 |
Other Links: | branch diff | manifest | tags |
Context
2018-02-28
| ||
15:28 | [graphspell][py] dawg: get JSON object instead of JSON string check-in: 1b8133065d user: olr tags: graphspell, multid | |
10:34 | [graphspell][py] ibdawg: init directly from an object (JSON) check-in: efd7bb0171 user: olr tags: graphspell, multid | |
07:50 | merge trunk check-in: a973e9aad8 user: olr tags: multid | |
Changes
Modified graphspell/ibdawg.py from [c41b426a86] to [145a26a0d0].
︙ | |||
75 76 77 78 79 80 81 | 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 | - - - - + + + + + - - - - - - + + + + + + + + - + | self.aSugg.clear() self.dSugg.clear() class IBDAWG: """INDEXABLE BINARY DIRECT ACYCLIC WORD GRAPH""" |
︙ | |||
165 166 167 168 169 170 171 | 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 | - + - + - | # <dChar> to get the value of an arc, <dCharVal> to get the char of an arc with its value self.dChar = {} for i in range(1, self.nChar+1): self.dChar[self.lArcVal[i]] = i self.dCharVal = { v: k for k, v in self.dChar.items() } self.nBytesOffset = 1 # version 3 |
︙ |