Commit
·
1fe96d0
1
Parent(s):
1c1d66d
Upload tokenizer.py
Browse files- tokenizer.py +5 -1
tokenizer.py
CHANGED
@@ -1,5 +1,6 @@
|
|
1 |
# coding=utf-8
|
2 |
-
#
|
|
|
3 |
#
|
4 |
# Licensed under the Apache License, Version 2.0 (the "License");
|
5 |
# you may not use this file except in compliance with the License.
|
@@ -12,6 +13,9 @@
|
|
12 |
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13 |
# See the License for the specific language governing permissions and
|
14 |
# limitations under the License.
|
|
|
|
|
|
|
15 |
""" Tokenization class for model ByT5."""
|
16 |
|
17 |
|
|
|
1 |
# coding=utf-8
|
2 |
+
#
|
3 |
+
# Everdoubling LLC.
|
4 |
#
|
5 |
# Licensed under the Apache License, Version 2.0 (the "License");
|
6 |
# you may not use this file except in compliance with the License.
|
|
|
13 |
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14 |
# See the License for the specific language governing permissions and
|
15 |
# limitations under the License.
|
16 |
+
#
|
17 |
+
# The following code is modified from HuggingFace's ByT5 Tokenizer: transformers/models/byt5/tokenization_byt5.py
|
18 |
+
#
|
19 |
""" Tokenization class for model ByT5."""
|
20 |
|
21 |
|