summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthieu Pignolet <matthieu@matthieu-dev.xyz>2024-11-06 10:25:17 +0400
committerGitHub <noreply@github.com>2024-11-06 10:25:17 +0400
commitfad219f2b08e71ac732a920a9b4767f449687d68 (patch)
tree9289a314f2ce263c73c6b1b48c90e28cfb11feb2
parentf231fddf662e67d508578e92b9b73ed502b04b62 (diff)
Update inference.rs
-rw-r--r--autofeur_db/src/inference.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/autofeur_db/src/inference.rs b/autofeur_db/src/inference.rs
index f8c1351..87574af 100644
--- a/autofeur_db/src/inference.rs
+++ b/autofeur_db/src/inference.rs
@@ -46,10 +46,12 @@ impl Save<'_> {
let sub: String = characters.iter().join("");
let inference = call_inference_service(&sub).await?;
- if levenshtein(&inference, &completion) < 2 {
+ if levenshtein(&inference, &completion) < 5 {
found = Some(sub);
break;
} else {
+ found = Some(sub);
+ break;
println!("did not match a={}, b={}", inference, completion)
}
}