artist versions: tune url similarity threshold (#4036)
This commit is contained in:
@@ -26,7 +26,7 @@ class SetDiff
|
|||||||
[added, removed, changed]
|
[added, removed, changed]
|
||||||
end
|
end
|
||||||
|
|
||||||
def find_similar(string, candidates, max_dissimilarity: 0.75)
|
def find_similar(string, candidates, max_dissimilarity: 0.70)
|
||||||
distance = ->(other) { DidYouMean::Levenshtein.distance(string, other) }
|
distance = ->(other) { DidYouMean::Levenshtein.distance(string, other) }
|
||||||
max_distance = string.size * max_dissimilarity
|
max_distance = string.size * max_dissimilarity
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user