ztane / python-Levenshtein

The Levenshtein Python C extension module contains functions for fast computation of Levenshtein distance and string similarity
GNU General Public License v2.0
1.26k stars 155 forks source link

Why this situation happen? jaro score equals to 0 #40

Open HelloLadsAndGents opened 5 years ago

HelloLadsAndGents commented 5 years ago

python3

import Levenshtein a="abcd" b="cd" Levenshtein.jaro(a,b) 0.0

import Levenshtein a="abcd" b="dc" Levenshtein.jaro(a,b) 0.5833333333333334