Skip to content

Fix token-count logic in nvtext::tokenize_with_vocabulary - #14393

Merged
rapids-bot[bot] merged 2 commits into
NVIDIA:branch-23.12from
davidwendt:bug-vocab-tokenizer
Nov 14, 2023
Merged

Fix token-count logic in nvtext::tokenize_with_vocabulary#14393
rapids-bot[bot] merged 2 commits into
NVIDIA:branch-23.12from
davidwendt:bug-vocab-tokenizer

Conversation

@davidwendt

Copy link
Copy Markdown
Contributor

Description

Fixes a bug introduced in #14336 when trying to simplify the token-counting logic as per this discussion #14336 (comment)
The simplification caused an error which was found when running the nvtext benchmarks.
The appropriate gtest has been updated to cover this case now.

Checklist

  • I am familiar with the Contributing Guidelines.
  • New or existing tests cover these changes.
  • The documentation is up to date with these changes.

@davidwendt davidwendt added bug Something isn't working 3 - Ready for Review Ready for review by team libcudf Affects libcudf (C++/CUDA) code. strings strings issues (C++ and Python) non-breaking Non-breaking change labels Nov 10, 2023
@davidwendt davidwendt self-assigned this Nov 10, 2023
@davidwendt
davidwendt requested a review from a team as a code owner November 10, 2023 00:29
@davidwendt

Copy link
Copy Markdown
Contributor Author

/merge

@rapids-bot
rapids-bot Bot merged commit b446a6f into NVIDIA:branch-23.12 Nov 14, 2023
@davidwendt
davidwendt deleted the bug-vocab-tokenizer branch November 14, 2023 17:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3 - Ready for Review Ready for review by team bug Something isn't working libcudf Affects libcudf (C++/CUDA) code. non-breaking Non-breaking change strings strings issues (C++ and Python)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants