Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
128cfdee
Commit
128cfdee
authored
Dec 18, 2019
by
Stefan Schweter
Browse files
tokenization add XLM-RoBERTa base model
parent
e778dd85
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
transformers/tokenization_xlm_roberta.py
transformers/tokenization_xlm_roberta.py
+2
-0
No files found.
transformers/tokenization_xlm_roberta.py
View file @
128cfdee
...
@@ -30,11 +30,13 @@ VOCAB_FILES_NAMES = {'vocab_file': 'sentencepiece.bpe.model'}
...
@@ -30,11 +30,13 @@ VOCAB_FILES_NAMES = {'vocab_file': 'sentencepiece.bpe.model'}
PRETRAINED_VOCAB_FILES_MAP
=
{
PRETRAINED_VOCAB_FILES_MAP
=
{
'vocab_file'
:
'vocab_file'
:
{
{
'xlm-roberta-base'
:
"https://schweter.eu/cloud/transformers/xlm-roberta-base-sentencepiece.bpe.model"
,
'xlm-roberta-large'
:
"https://schweter.eu/cloud/transformers/xlm-roberta-large-sentencepiece.bpe.model"
,
'xlm-roberta-large'
:
"https://schweter.eu/cloud/transformers/xlm-roberta-large-sentencepiece.bpe.model"
,
}
}
}
}
PRETRAINED_POSITIONAL_EMBEDDINGS_SIZES
=
{
PRETRAINED_POSITIONAL_EMBEDDINGS_SIZES
=
{
'xlm-roberta-base'
:
None
,
'xlm-roberta-large'
:
None
,
'xlm-roberta-large'
:
None
,
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment