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
Using the given example:
insert_costs = np.ones(128, dtype=np.float64) insert_costs[ord('D')] = 1.5 print(lev('BANANAS', 'BANDANAS', insert_costs=insert_costs)) # prints '1.5'
We get a printout 1.5, no problem. If I change the cost to a higher value, say 5, then it prints 2.0. Am I missing something?
The text was updated successfully, but these errors were encountered:
In this paricular case, it would be cheaper to substitute A -> D (cost 1), then insert the A back (cost 1), yielding a lower cost of 2:
Sorry, something went wrong.
Edited: Thanks that makes sense!
No branches or pull requests
Using the given example:
We get a printout 1.5, no problem. If I change the cost to a higher value, say 5, then it prints 2.0. Am I missing something?
The text was updated successfully, but these errors were encountered: