bst-mug / acres

Acronym expansion module based on word embeddings and filtering rules
Apache License 2.0
1 stars 2 forks source link

[Performance] Levenshtein distance is really slow #105

Closed michelole closed 5 years ago

michelole commented 5 years ago

Current code uses the recursive version from https://www.python-course.eu/levenshtein_distance.php, but there's a much more efficient iterative version using dynamic programming in the same website.

It seems to be REALLY slow: it's responsible for 58% own time, 70% total time when running evaluation with FASTNGRAM.