Description Usage Arguments Value Examples
Finds the minimum cost (in terms of edit operations) to transform the source token to the target token
1 2 3 4 5 6 7 | minimum_edit_distance(
source,
target,
deletecost = 1,
insertcost = 1,
replacecost = 2
)
|
source |
|
target |
|
deletecost |
|
insertcost |
|
replacecost |
|
dist - the minimum edit distance between source and target, D - the filled in distance matrix steps ( for backtrace )
1 | minimum_edit_distance('play','stay') # -> dist = 4
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.