TheFuzz.Similarity.Overlap (TheFuzz v0.6.0)
View SourceImplements the Overlap Similarity Metric
Summary
Functions
Compares two values using the Overlap Similarity metric and returns the coefficient. It takes the ngram size as the third argument, and, if none is provided, assumes that you want to use 1.
Functions
Compares two values using the Overlap Similarity metric and returns the coefficient. It takes the ngram size as the third argument, and, if none is provided, assumes that you want to use 1.
Examples
iex> TheFuzz.Similarity.Overlap.compare("compare me", "to me")
0.8
iex> TheFuzz.Similarity.Overlap.compare("compare me", "to me", 2)
0.5
iex> TheFuzz.Similarity.Overlap.compare("or me", "me", 1)
1.0