This repository has been archived by the owner on Dec 16, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support splitting long sequences into multiple segments for transform…
…ers (#3666) * First pass at folding long sequences * bug fix * various fixes * more fixes * More fixes * Add tests * fix and flake8 * black * mypy * make language consistent * misc improvments * max_len -> max_length * Default max_length to None rather than -1 * Clean tokens_to_indices * Add documentation * Factor out long sequence handling logic in embedder in separate functions * Add tests * black * typo fix * Make end token embeddings robust * bug fix * improve unfold test * black * Add documentation * Rebase fixes * More fixes for type_id * More fixes from rebase * black * Minor doc fixes * mypy * Resolving comments * minor fixes * black
- Loading branch information
1 parent
30d687c
commit 5bec95c
Showing
8 changed files
with
621 additions
and
97 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
Oops, something went wrong.