-
Notifications
You must be signed in to change notification settings - Fork 915
New issue
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
Add str.edit_distance_matrix
#8463
Conversation
Codecov Report
@@ Coverage Diff @@
## branch-21.08 #8463 +/- ##
===============================================
Coverage ? 82.85%
===============================================
Files ? 109
Lines ? 17919
Branches ? 0
===============================================
Hits ? 14846
Misses ? 3073
Partials ? 0 Continue to review full report at Codecov.
|
Co-authored-by: GALI PREM SAGAR <[email protected]>
@@ -787,6 +787,34 @@ def test_edit_distance(): | |||
assert_eq(expected, actual) | |||
|
|||
|
|||
def test_edit_distance_matrix(): | |||
# normal | |||
sr = cudf.Series(["rounded", "bounded", "bounce", "trounce", "ounce"]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just wondering does this implementation also work for series containing lists of strings?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It doesn't. It only accept string type series.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good work as usual Michael. Generally looks good to me!
Co-authored-by: Marlene <[email protected]>
@gpucibot merge |
This PR plumbs nvtext's
edit_distance_matrix
to cudf python with necessary precondition checks. It also adds python tests.Closes #6341