@@ -138,11 +138,10 @@ } // to get the value of an arc, to get the char of an arc with its value this.dChar = helpers.objectToMap(this.dChar); this.dCharVal = this.dChar.gl_reverse(); this.a2grams = new Set(this.l2grams); - //console.log(this.l2grams); if (this.cStemming == "S") { this.funcStemming = str_transform.changeWordWithSuffixCode; } else if (this.cStemming == "A") { this.funcStemming = str_transform.changeWordWithAffixCode; @@ -406,12 +405,11 @@ isNgramsOK (sChars) { if (sChars.length != 2) { return true; } - return this.a2grams.has(sChars); //slower than indexOf in an Array? - //return this.l2grams.indexOf(sChars) !== false; + return this.a2grams.has(sChars); } * _getCharArcs (iAddr) { // generator: yield all chars and addresses from node at address for (let [nVal, jAddr] of this._getArcs(iAddr)) {