From 60e525a367f96d7289d29275eab045302ddad7be Mon Sep 17 00:00:00 2001 From: Jon Michael Aanes Date: Sat, 21 Jul 2018 14:35:06 +0200 Subject: [PATCH] The dumb crashes continue --- string_distance.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/string_distance.lua b/string_distance.lua index fb36603..7845bf3 100644 --- a/string_distance.lua +++ b/string_distance.lua @@ -188,7 +188,7 @@ local function strings_with_highest_similarity (str, list_of_other_str) local total_sim = 0 for _, similarity_func in ipairs(SIMILARITY_METRICS) do local sim, max_sim, min_sim = similarity_func(str, other_str) - assert(min_sim <= max_sim) + --assert(min_sim <= max_sim) total_sim = total_sim + (sim-min_sim)/(max_sim-min_sim) end possible[#possible+1] = {other_str, total_sim}