We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parentf28c9e3 commitd19dad8Copy full SHA for d19dad8
rapidfuzz_reference/Levenshtein.hpp
@@ -43,6 +43,13 @@ Matrix<size_t> levenshtein_matrix(InputIt1 first1, InputIt1 last1, InputIt2 firs
43
return matrix;
44
}
45
46
+template<typename Sentence1,typename Sentence2>
47
+Matrix<size_t>levenshtein_matrix(const Sentence1& s1,const Sentence2& s2,
48
+ LevenshteinWeightTable weights = {1,1,1})
49
+{
50
+returnlevenshtein_matrix(std::begin(s1),std::end(s1),std::begin(s2),std::end(s2), weights);
51
+}
52
+
53
template<typename InputIt1,typename InputIt2>
54
size_tlevenshtein_distance(InputIt1 first1, InputIt1 last1, InputIt2 first2, InputIt2 last2,
55
LevenshteinWeightTable weights = {1,1,1},