public class EditDistance
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static Configuration |
config
Fetches the spell engine configuration properties.
|
| Constructor and Description |
|---|
EditDistance() |
| Modifier and Type | Method and Description |
|---|---|
static int |
getDistance(java.lang.String word,
java.lang.String similar)
Evaluates the distance between two words.
|
static int |
getDistance(java.lang.String word,
java.lang.String similar,
int[][] matrix)
Evaluates the distance between two words.
|
static void |
main(java.lang.String[] args)
For testing edit distances
|
public static Configuration config
public static final int getDistance(java.lang.String word,
java.lang.String similar)
word - One word to evaluatessimilar - The other word to evaluatespublic static final int getDistance(java.lang.String word,
java.lang.String similar,
int[][] matrix)
word - One word to evaluatessimilar - The other word to evaluatespublic static void main(java.lang.String[] args)
throws java.lang.Exception
args - an array of two strings we want to evaluate their distances.java.lang.Exception - when problems occurs during reading args.