Implementation of various string similarity and distance algorithms: Levenshtein, Jaro-winkler, n-Gram, Q-Gram, Jaccard index, Longest Common Subsequence edit distance, cosine similarity. A library implementing different string similarity and distance measures. A dozen of algorithms (including Levenshtein edit distance and sibblings, Jaro-Winkler, Longest Common Subsequence, cosine similarity etc.) are currently implemented. The main characteristics of each implemented algorithm are presented below. The "cost" column gives an estimation of the computational cost to compute the similarity between two strings of length m and n respectively. If the alphabet is finite, it is possible to use the method of four russians (Arlazarov et al. "On economic construction of the transitive closure of a directed graph", 1970) to speedup computation. This was published by Masek in 1980 ("A Faster Algorithm Computing String Edit Distances").

Features

  • A few algorithms work by converting strings into sets of n-grams
  • The Levenshtein distance between two words is the minimum number of single-character edits
  • This distance is computed as levenshtein distance divided by the length of the longest string
  • Damerau-Levenshtein distance with transposition
  • Optimal String Alignment variant of Damerau–Levenshtein
  • Jaro-Winkler computes the similarity between 2 strings

Project Samples

Project Activity

See All Activity >

Categories

Algorithms

License

MIT License

Follow java-string-similarity

java-string-similarity Web Site

You Might Also Like
Monitor your whole IT Infrastructure Icon
Monitor your whole IT Infrastructure

Know what's up and what's new: Monitor all your systems, devices, traffic and applications.

Caters to tech staff, system Administrators, and companies of any size, from small and medium sized businesses to enterprises that need their IT network to be reliable and easy to monitor in real-time. Equipped with an easy-to-use, intuitive interface with a cutting-edge monitoring engine. PRTG optimizes connections and workloads as well as reducing operational costs by avoiding outages while saving time and controlling service level agreements (SLAs).
Start Your Free PRTG Trial Now
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of java-string-similarity!

Additional Project Details

Programming Language

Java

Related Categories

Java Algorithms

Registered

2022-02-24