from fuzzywuzzy import fuzz from fuzzywuzzy import process # 简单匹配度 a = fuzz.ratio("this is a test", "this is a test!") print(a) # 模糊匹配度 b = fuzz.partial_ratio("this is a test", "this is a test!") print(b)
GOOD_N_LCM |
|
||
Copyright © 2024 GOOD_N_LCM
Powered by .NET 9.0 on Kubernetes |