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
Add the ability to supply pre-computed token weights to functions.
levitate::lev_token_set_ratio("ltd bill","ltd b") #> 0.625 levitate::lev_ratio("bill","b") #> 0.25 levitate::lev_ratio("ltd bill","ltd b") #> 0.625
Now, suppose we had lev_ratio( “ltd bill”, “ltd b”, weights = list(ltd = 0.1)). This would construct the lev_ratio as (0.1*3 + 1)/(0.1*3 + 3) = 0.39. Similarly, lev_ratio(“ltd bill”, “ltd b”,weights = list(ltd = 0.01) = 0.34.
lev_ratio( “ltd bill”, “ltd b”, weights = list(ltd = 0.1))
(0.1*3 + 1)/(0.1*3 + 3)
lev_ratio(“ltd bill”, “ltd b”,weights = list(ltd = 0.01)
Will require:
lev_token_*()
stringdist
The text was updated successfully, but these errors were encountered:
lewinfox
Successfully merging a pull request may close this issue.
Add the ability to supply pre-computed token weights to functions.
Now, suppose we had
lev_ratio( “ltd bill”, “ltd b”, weights = list(ltd = 0.1))
. This would construct the lev_ratio as(0.1*3 + 1)/(0.1*3 + 3)
= 0.39. Similarly,lev_ratio(“ltd bill”, “ltd b”,weights = list(ltd = 0.01)
= 0.34.Will require:
lev_token_*()
functionsstringdist
functionsThe text was updated successfully, but these errors were encountered: