Skip to content

String metric (e.g., the Damerau-Levenshtein distance) Java library

License

Notifications You must be signed in to change notification settings

gtri/string-metric

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

string-metric

A Java library of String metrics.

import edu.gatech.gtri.stringmetric.*;
StringMetric metric = new DamerauLevenshteinDistance();

assert(4 == metric.distance(
        "The quick brown fox jumps over the lazy dog.",
        "Thy quick brown ox jumps hover teh lazy dog."));
//         |             |        |      ||
//         |             |        |      \|
//   Substitution        |    Insertion   |
//                       |                |
//                   Deletion        Transposition of two
//                                   adjacent characters

Release artifacts

This project's release artifacts are available in the Maven Central Repository.

<dependency>
  <groupId>edu.gatech.gtri.string-metric</groupId>
  <artifactId>string-metric</artifactId>
  <version>1.0</version>
</dependency>

About

String metric (e.g., the Damerau-Levenshtein distance) Java library

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages