transformers
Add a TF in-graph tokenizer for BERT
#17701
Merged

Add a TF in-graph tokenizer for BERT #17701

Rocketknight1 merged 23 commits into main from tf_tokenizers
Rocketknight1
Rocketknight1 Rocketknight1 requested a review from gante gante 4 years ago
Rocketknight1 Rocketknight1 requested a review from sgugger sgugger 4 years ago
HuggingFaceDocBuilderDev
sgugger
sgugger commented on 2022-06-14
gante
gante commented on 2022-06-14
Rocketknight1 Rocketknight1 marked this pull request as ready for review 4 years ago
Rocketknight1 Add a TF in-graph tokenizer for BERT
acb2b96a
Rocketknight1 Add from_pretrained
f6f92096
Rocketknight1 Add proper truncation, option handling to match other tokenizers
e48be217
Rocketknight1 Add proper imports and guards
fc0f44e2
Rocketknight1 Add test, fix all the bugs exposed by said test
d7f48ddd
Rocketknight1 Fix truncation of paired texts in graph mode, more test updates
6b90681c
Rocketknight1 Small fixes, add a (very careful) test for savedmodel
f9a1c3f8
Rocketknight1 Add tensorflow-text dependency, make fixup
01a09df2
Rocketknight1 Update documentation
9804bafa
Rocketknight1 Update documentation
c4516dbd
Rocketknight1 make fixup
b227c6b1
Rocketknight1 Rocketknight1 force pushed to b227c6b1 4 years ago
Rocketknight1 Slight changes to tests
3382282d
Rocketknight1 Add some docstring examples
24b1b0ed
Rocketknight1 Update tests
3686ff8f
Rocketknight1
Rocketknight1 Update tests and add proper lowercasing/normalization
8d5495f4
Rocketknight1 make fixup
7bf53fb2
gante
gante approved these changes on 2022-06-23
Rocketknight1 Add docstring for padding!
ccf8aab4
Rocketknight1 Mark slow tests
944c0442
Rocketknight1 make fixup
212ec261
sgugger
sgugger approved these changes on 2022-06-23
Rocketknight1 Fall back to BertTokenizerFast if BertTokenizer is unavailable
c6ee3318
Rocketknight1 Fall back to BertTokenizerFast if BertTokenizer is unavailable
c73af542
Rocketknight1 make fixup
130a399b
Rocketknight1 Properly handle tensorflow-text dummies
34fede15
sgugger
sgugger approved these changes on 2022-06-24
sgugger
sgugger commented on 2022-06-24
Rocketknight1 Rocketknight1 merged ee0d001d into main 4 years ago
Rocketknight1 Rocketknight1 deleted the tf_tokenizers branch 4 years ago

Login to write a write a comment.

Login via GitHub

Reviewers
Assignees
No one assigned
Labels
Milestone