mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-20 04:02:27 +00:00
c637402081
they now redirect to anyway. All new urls checked to return 200, I've fixed a couple of them in the process. Approved by: portmgr blanket, mat
22 lines
529 B
Plaintext
22 lines
529 B
Plaintext
Fuzzy string matching like a boss. It uses Levenshtein Distance to calculate
|
|
the differences between sequences in a simple-to-use package.
|
|
|
|
Simple Ratio
|
|
|
|
>>> fuzz.ratio("this is a test", "this is a test!")
|
|
97
|
|
|
|
Partial Ratio
|
|
|
|
>>> fuzz.partial_ratio("this is a test", "this is a test!")
|
|
100
|
|
|
|
Token Sort Ratio
|
|
|
|
>>> fuzz.ratio("fuzzy wuzzy was a bear", "wuzzy fuzzy was a bear")
|
|
91
|
|
>>> fuzz.token_sort_ratio("fuzzy wuzzy was a bear", "wuzzy fuzzy was a bear")
|
|
100
|
|
|
|
WWW: https://pypi.org/project/naiveBayesClassifier/
|