Skip to content
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

[tokenizer] Return if exceed max token length #2957

Merged
merged 1 commit into from
Jan 22, 2024

Conversation

frankfliu
Copy link
Contributor

Description

Brief description of what this PR is about

  • If this change is a backward incompatible change, why must this change be made?
  • Interesting edge cases to note here

@codecov-commenter
Copy link

codecov-commenter commented Jan 22, 2024

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 72.28%. Comparing base (bb5073f) to head (75705a2).
Report is 1331 commits behind head on master.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #2957      +/-   ##
============================================
+ Coverage     72.08%   72.28%   +0.19%     
- Complexity     5126     7283    +2157     
============================================
  Files           473      722     +249     
  Lines         21970    32508   +10538     
  Branches       2351     3392    +1041     
============================================
+ Hits          15838    23499    +7661     
- Misses         4925     7387    +2462     
- Partials       1207     1622     +415     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

*
* @return {@code true} if tokens exceed max length
*/
public boolean exceedMaxLength() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will be even better if we can get how many tokens exceeded.

@frankfliu frankfliu merged commit 5ece342 into deepjavalibrary:master Jan 22, 2024
5 checks passed
@frankfliu frankfliu deleted the token branch January 22, 2024 22:07
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.

4 participants