3 ms·
Looks like parent post is on the money for the reason this library was done w/o static methods. Note that there are interfaces in the library. https://github.
by bfung 10y ago
Looks like parent post is on the money for the reason this library was done w/o static methods. Note that there are interfaces in the library.
https://github.com/tdebatty/java-string-similarity/blob/master/src/main/java/info/debatty/java/stringsimilarity/Levenshtein.java#L12 https://github.com/tdebatty/java-string-similarity/blob/mast...
The example code in README.md can probably do this instead:
MetricStringDistance msd = new Levenshtein();
System.out.println(msd.distance("My string", "My $tring"));
MetricStringDistance msd2 = new MetricLCS();
System.out.println(msd2.distance("ABDEF", "ABDIF"));
- scarmig 10y agoFancy seeing you here! Hope you're enjoying your vacation :)