每天一点点,记录学习点滴
python fuzzywuzzy 模糊匹配,计算相似度
from fuzzywuzzy import fuzz
from fuzzywuzzy import process
1:简单匹配
a = fuzz.ratio('this is a shot','this is a shat')
Out[37]: 93
2:非完全匹配
b = fuzz.partial_ratio(
每天一点点,记录学习点滴
python fuzzywuzzy 模糊匹配,计算相似度
from fuzzywuzzy import fuzz
from fuzzywuzzy import process
1:简单匹配
a = fuzz.ratio('this is a shot','this is a shat')
Out[37]: 93
2:非完全匹配
b = fuzz.partial_ratio(