[REVIEW] Add nvtext::edit_distance API - #5811
Merged
ramakrishnap-nv merged 26 commits intoAug 11, 2020
Merged
Conversation
Codecov Report
@@ Coverage Diff @@
## branch-0.15 #5811 +/- ##
===============================================
+ Coverage 84.11% 84.43% +0.32%
===============================================
Files 80 80
Lines 13084 13411 +327
===============================================
+ Hits 11006 11324 +318
- Misses 2078 2087 +9
Continue to review full report at Codecov.
|
davidwendt
marked this pull request as ready for review
August 6, 2020 14:10
devavret
reviewed
Aug 11, 2020
devavret
approved these changes
Aug 11, 2020
11 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is also to help unblock NVIDIA/cuml#2476
The edit_distance API uses the Levenshtein algorithm.
This is used in NLP processes to compute the relative closeness between the characters in two words/strings.
The libcudf API looks like this:
And can be used to compute the edit distance between two columns of strings or a column of strings and a single string.
This PR will also include the appropriate Python/Cython interfaces to expose this through the cudf Python library.