Overview
| Comment: | [graphspell] remove useless code | 
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive | 
| Timelines: | family | ancestors | descendants | both | trunk | graphspell | 
| Files: | files | file ages | folders | 
| SHA3-256: | 
2e960183fabc8b970fa62db55c2a99a8 | 
| User & Date: | olr on 2020-05-03 09:21:36 | 
| Other Links: | manifest | tags | 
Context
| 
   2020-05-03 
 | ||
| 10:46 | [graphspell] char_player: ajustements check-in: 3e13a382eb user: olr tags: trunk, graphspell | |
| 09:21 | [graphspell] remove useless code check-in: 2e960183fa user: olr tags: trunk, graphspell | |
| 09:12 | [graphspell] experiment: DamerauLevenstein distance modified by function calculating distance between chars check-in: 90478790e5 user: olr tags: trunk, graphspell | |
Changes
Modified graphspell-js/str_transform.js from [b9cc7d5a41] to [9baf96ac7b].
| ︙ | ︙ | |||
91 92 93 94 95 96 97  | 
                    if (i > 1 && j > 1 && s1[i] == s2[j-1] && s1[i-1] == s2[j]) {
                        matrix[i][j] = Math.min(matrix[i][j], matrix[i-2][j-2] + nCost);  // Transposition
                    }
                }
            }
            return Math.floor(matrix[nLen1][nLen2]);
        }
 | < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < <  | 91 92 93 94 95 96 97 98 99 100 101 102 103 104  | 
                    if (i > 1 && j > 1 && s1[i] == s2[j-1] && s1[i-1] == s2[j]) {
                        matrix[i][j] = Math.min(matrix[i][j], matrix[i-2][j-2] + nCost);  // Transposition
                    }
                }
            }
            return Math.floor(matrix[nLen1][nLen2]);
        }
        catch (e) {
            console.error(e);
        }
    },
    showDistance (s1, s2) {
        console.log(`Distance: ${s1} / ${s2} = ${this.distanceDamerauLevenshtein(s1, s2)})`);
 | 
| ︙ | ︙ |