diff-match-patch-cpp-stl icon indicating copy to clipboard operation
diff-match-patch-cpp-stl copied to clipboard

query: diff match patch python vs diff match patch c++ stl

Open vandana1302238 opened this issue 3 years ago • 0 comments

Hi team, I am getting different results for same pair of texts comparison using match_main() for DMP python version and c++ stl in python.

(diff_match_patch_cpp is diff_match_patch_python-1.0.2-py3.7-win-amd64.egg)

import diff_match_patch_cpp as dmp dmp.match_main(text1, text2, 0, 1000, 32, 0.25) -1

(this is google diff match patch)

import diff_match_patch dmp_py = diff_match_patch() dmp.match_main(text1, text2, 0) 0

being the thresholds: match distance, match threshold to default in both the versions. Can you please clarify on this?

vandana1302238 avatar Nov 12 '21 09:11 vandana1302238