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