-
Notifications
You must be signed in to change notification settings - Fork 790
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for cross-encoder models (+fix token type ids) (#501)
* Formatting * Update ESM pair template * Fix token type ids * Update JSDoc * Cleanup * Remove unused `prepare_model_inputs` function * Move pad and truncate logic to helper functions * Add static padding/truncation unit tests * Fix padding/truncation * Remove unused `add_token_types` function * Reduce duplication * `let` -> `const` where possible * Add cross-encoder models
- Loading branch information
Showing
6 changed files
with
535 additions
and
325 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.