Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions docs/changelog/116358.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
pr: 116358
summary: Update Deberta tokenizer
area: Machine Learning
type: bug
issues: []
Original file line number Diff line number Diff line change
Expand Up @@ -367,8 +367,10 @@ List<DelimitedToken.Encoded> tokenize(CharSequence inputSequence, IntToIntFuncti
new DelimitedToken.Encoded(
Strings.format("<0x%02X>", bytes[i]),
pieces[i],
// even though we are changing the number of characters in the output, we don't
// need to change the offsets. The offsets refer to the input characters
offsetCorrection.apply(node.startsAtCharPos),
offsetCorrection.apply(startsAtBytes + i)
offsetCorrection.apply(endsAtChars)
)
);
}
Expand Down