We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm currently porting a Python library that uses FuzzyWuzzy to calculate PartialRatio to Golang. Check out this example:
PartialRatio
String 1: burg String 2: pizza hut
burg
pizza hut
The PartialRatio given by Python is 33 whereas go-fuzzywuzzy outputs 25 in this case.
33
go-fuzzywuzzy
25
Python Implementation:
>>> from thefuzz import fuzz >>> fuzz.partial_ratio("burg", "pizza hut") 33
Golang Implementation:
import ( "math" fuzzy "github.com/paul-mannino/go-fuzzywuzzy" ) func CalculatePartialRatio(str1, str2 string) int { return fuzzy.PartialRatio(str1, str2) }
Another example: tomato, lemon soup. Python gives 40 as the answer whereas Golang gives 33. Any idea?
tomato
lemon soup
40
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I'm currently porting a Python library that uses FuzzyWuzzy to calculate
PartialRatio
to Golang. Check out this example:String 1:
burg
String 2:
pizza hut
The
PartialRatio
given by Python is33
whereasgo-fuzzywuzzy
outputs25
in this case.Python Implementation:
Golang Implementation:
Another example:
tomato
,lemon soup
. Python gives40
as the answer whereas Golang gives33
. Any idea?The text was updated successfully, but these errors were encountered: