Skip to content

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

@vandana1302238

Description

@vandana1302238

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions