TheFuzz v0.3.0 TheFuzz.Similarity.Jaccard
This module contains functions to calculate the Jaccard similarity coefficient between two given strings
Summary
Functions
Calculates the Jaccard similarity coefficient between two given strings with a default ngram size of 2
Calculates the Jaccard similarity coefficient between two given strings with the specified ngram size
Functions
Calculates the Jaccard similarity coefficient between two given strings with a default ngram size of 2
Examples
iex> TheFuzz.Similarity.Jaccard.compare("contact", "context")
0.3333333333333333
iex> TheFuzz.Similarity.Jaccard.compare("ht", "hththt")
0.2