Skip to content

Commit

Permalink
Add ernie-tiny configs to ERNIE tokenizer (PaddlePaddle#406)
Browse files Browse the repository at this point in the history
Add ernie-tiny configs to ERNIE tokenizer

Co-authored-by: Guo Sheng <[email protected]>
  • Loading branch information
LiuChiachi and guoshengCS authored May 18, 2021
1 parent 55e96ba commit 2e64244
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions paddlenlp/transformers/ernie/tokenizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ class ErnieTokenizer(PretrainedTokenizer):
"vocab_file": {
"ernie-1.0":
"https://paddlenlp.bj.bcebos.com/models/transformers/ernie/vocab.txt",
"ernie-tiny":
"https://paddlenlp.bj.bcebos.com/models/transformers/ernie_tiny/vocab.txt",
"ernie-2.0-en":
"https://paddlenlp.bj.bcebos.com/models/transformers/ernie_v2_base/vocab.txt",
"ernie-2.0-large-en":
Expand All @@ -88,6 +90,9 @@ class ErnieTokenizer(PretrainedTokenizer):
"ernie-1.0": {
"do_lower_case": True
},
"ernie-tiny": {
"do_lower_case": True
},
"ernie-2.0-en": {
"do_lower_case": True
},
Expand Down

0 comments on commit 2e64244

Please sign in to comment.