Open GoogleCodeExporter opened 8 years ago
I have the same probleme with this C# code :
DiffMatchPatch.diff_match_patch dmpDiff = new DiffMatchPatch.diff_match_patch();
List<DiffMatchPatch.Diff> lDiffs = dmpDiff.diff_main("considéré", "apprécié");
int iIndex = dmpDiff.diff_levenshtein(lDiffs);
Console.WriteLine(iIndex); // 11 ??????
According to the docs on the API home page this is not possible. The length of
the longer string is equal to 9.
"The minimum distance is 0 which means equality, the maximum distance is the
length of the longer string."
Original comment by cnh...@gmail.com
on 1 Oct 2013 at 10:47
Original issue reported on code.google.com by
andersly...@gmail.com
on 22 May 2013 at 7:28