Skip to content

Conversation

@PR0123
Copy link

@PR0123 PR0123 commented Mar 25, 2023

Can be used with edit distance algorithms. Example:

template = ["the", "quick", "brown", "fox", "jumps", "over", "the", "lazy", "dog"]
query = ["the", "fox", "the", "dog"]
out = fastdtw(template, query, dist=Levenshtein.distance)
# output: (21, [(0, 0), (1, 1), (2, 1), (3, 1), (4, 2), (5, 2), (6, 2), (7, 3), (8, 3)])

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant