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

Other Useful Business Software
Create and run cloud-based virtual machines. Icon
Create and run cloud-based virtual machines.

Secure and customizable compute service that lets you create and run virtual machines.

Computing infrastructure in predefined or custom machine sizes to accelerate your cloud transformation. General purpose (E2, N1, N2, N2D) machines provide a good balance of price and performance. Compute optimized (C2) machines offer high-end vCPU performance for compute-intensive workloads. Memory optimized (M2) machines offer the highest memory and are great for in-memory databases. Accelerator optimized (A2) machines are based on the A100 GPU, for very demanding applications.
Try for free
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