METHOD, APPARATUS, AND SYSTEM FOR MODIFYING SUBSTITUTION COSTS
First Claim
1. A computer readable storage medium comprising a computer readable program stored on a tangible storage device for modifying substitution cost, wherein the computer readable program when executed on a computer causes the computer to:
- calculate a substitution cost between a first character of a first string and a second character of a second string;
calculate a spatial vector between the first character and the second character from a location of a first key representing the first character on a keyboard and a location of a second key representing the second character on the keyboard;
modify the substitution cost if the spatial vector is less than a spatial threshold; and
calculate an edit distance between the first string and the second string using the modified substitution cost for the substitution cost of substituting the first character with the second character.
1 Assignment
0 Petitions
Accused Products
Abstract
A method, apparatus, and system are disclosed for modifying substitution cost. A substitution cost module calculates a substitution cost between a first character of a first string and a second character of a second string. A spatial vector module calculates a spatial vector between the first character and the second character from a location of a first key representing the first character on a keyboard and a location of a second key representing the second character on the keyboard. The spatial vector module modifies the substitution cost if the spatial vector is less than a spatial threshold. An edit distance module calculates an edit distance between the first string and the second string using the modified substitution cost for the substitution cost of substituting the first character with the second character.
21 Citations
20 Claims
-
1. A computer readable storage medium comprising a computer readable program stored on a tangible storage device for modifying substitution cost, wherein the computer readable program when executed on a computer causes the computer to:
-
calculate a substitution cost between a first character of a first string and a second character of a second string; calculate a spatial vector between the first character and the second character from a location of a first key representing the first character on a keyboard and a location of a second key representing the second character on the keyboard; modify the substitution cost if the spatial vector is less than a spatial threshold; and calculate an edit distance between the first string and the second string using the modified substitution cost for the substitution cost of substituting the first character with the second character. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. An apparatus comprising:
-
a computer readable storage medium storing a computer readable program; a processor executing the computer readable program, the computer readable program comprising a substitution cost module calculating a substitution cost between a first character of a first string and a second character of a second string; a spatial vector module calculating a spatial vector between the first character and the second character from a location of a first key representing the first character on a keyboard and a location of a second key representing the second character on the keyboard and modifying the substitution cost if the spatial vector is less than a spatial threshold; and an edit distance module calculating an edit distance between the first string and the second string using the modified substitution cost for the substitution cost of substituting the first character with the second character. - View Dependent Claims (9, 10, 11, 12, 13, 14)
-
-
15. A method comprising:
-
calculating, by use of a processor, a substitution cost between a first character of a first string and a second character of a second string; calculating, by use of a processor, a spatial vector between the first character and the second character from a location of a first key representing the first character on a keyboard and a location of a second key representing the second character on the keyboard; modifying, by use of a processor, the substitution cost if the spatial vector is less than a spatial threshold; and calculating, by use of a processor, an edit distance between the first string and the second string using the modified substitution cost for the substitution cost of substituting the first character with the second character. - View Dependent Claims (16, 17, 18, 19, 20)
-
Specification