Overview
| Comment: | [graphspell][js] fix syntax error | 
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive | 
| Timelines: | family | ancestors | descendants | both | graphspell | dict2 | 
| Files: | files | file ages | folders | 
| SHA3-256: | 
6d54aadbb1934e7be14991ab208030ee | 
| User & Date: | olr on 2020-11-05 13:27:24 | 
| Other Links: | branch diff | manifest | tags | 
Context
| 
   2020-11-05 
 | ||
| 16:25 | [graphspell][fx] dawg: remove useless parameters Closed-Leaf check-in: 5538934848 user: olr tags: fx, graphspell, dict2 | |
| 13:27 | [graphspell][js] fix syntax error check-in: 6d54aadbb1 user: olr tags: graphspell, dict2 | |
| 
   2020-11-04 
 | ||
| 17:55 | [graphspell] dawr builder: binary dict as string -> binary dict as list check-in: 85560b6eba user: olr tags: graphspell, dict2 | |
Changes
Modified graphspell-js/dawg.js from [b461581aec] to [4cbdb7b217].
| ︙ | ︙ | |||
346 347 348 349 350 351 352  | 
    // BINARY CONVERSION
    _calculateBinary (nCompressionMethod=1) {
        console.log("Write DAWG as an indexable binary dictionary");
        this.nBytesArc = Math.floor( (this.nArcVal.toString(2).length + 2) / 8 ) + 1;     // We add 2 bits. See DawgNode.convToBytes()
        this.nBytesOffset = 0;
        this._calcNumBytesNodeAddress();
        this._calcNodesAddress();
 | |  | 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360  | 
    // BINARY CONVERSION
    _calculateBinary (nCompressionMethod=1) {
        console.log("Write DAWG as an indexable binary dictionary");
        this.nBytesArc = Math.floor( (this.nArcVal.toString(2).length + 2) / 8 ) + 1;     // We add 2 bits. See DawgNode.convToBytes()
        this.nBytesOffset = 0;
        this._calcNumBytesNodeAddress();
        this._calcNodesAddress();
        this.sByDic = this.oRoot.convToBytes(this.nBytesArc, this.nBytesNodeAddress);
        for (let oNode of this.dMinimizedNodes.values()) {
            this.sByDic += oNode.convToBytes(this.nBytesArc, this.nBytesNodeAddress);
        }
        console.log("Arc values (chars, affixes and tags): " + this.nArcVal);
        console.log("Arc size: "+this.nBytesArc+" bytes, Address size: "+this.nBytesNodeAddress+" bytes");
        console.log("-> " + this.nBytesArc+this.nBytesNodeAddress + " * " + this.nArc + " = " + (this.nBytesArc+this.nBytesNodeAddress)*this.nArc + " bytes");
    }
 | 
| ︙ | ︙ |