examples : fix + refactor Levenshtein distance

This commit is contained in:
Georgi Gerganov
2023-04-30 19:12:49 +03:00
parent 794b162a46
commit 4a7d49af95
4 changed files with 26 additions and 50 deletions

View File

@ -118,3 +118,5 @@ bool vad_simple(
float freq_thold,
bool verbose);
// compute similarity between two strings using Levenshtein distance
float similarity(const std::string & s0, const std::string & s1);