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
36fc52a3
Commit
36fc52a3
authored
Dec 10, 2019
by
Julien Chaumond
Browse files
Update links to weights
parent
371c5ddf
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
16 deletions
+16
-16
transformers/configuration_bert.py
transformers/configuration_bert.py
+4
-4
transformers/modeling_bert.py
transformers/modeling_bert.py
+4
-4
transformers/modeling_tf_bert.py
transformers/modeling_tf_bert.py
+4
-4
transformers/tokenization_bert_japanese.py
transformers/tokenization_bert_japanese.py
+4
-4
No files found.
transformers/configuration_bert.py
View file @
36fc52a3
...
...
@@ -42,10 +42,10 @@ BERT_PRETRAINED_CONFIG_ARCHIVE_MAP = {
'bert-base-cased-finetuned-mrpc'
:
"https://s3.amazonaws.com/models.huggingface.co/bert/bert-base-cased-finetuned-mrpc-config.json"
,
'bert-base-german-dbmdz-cased'
:
"https://s3.amazonaws.com/models.huggingface.co/bert/bert-base-german-dbmdz-cased-config.json"
,
'bert-base-german-dbmdz-uncased'
:
"https://s3.amazonaws.com/models.huggingface.co/bert/bert-base-german-dbmdz-uncased-config.json"
,
'bert-base-japanese'
:
"https://
www.nlp.ecei.tohoku.ac.jp/~m-suzuki/bert-japanese
/bert-base-japanese-config.json"
,
'bert-base-japanese-whole-word-masking'
:
"https://
www.nlp.ecei.tohoku.ac.jp/~m-suzuki/bert-japanese
/bert-base-japanese-whole-word-masking-config.json"
,
'bert-base-japanese-char'
:
"https://
www.nlp.ecei.tohoku.ac.jp/~m-suzuki/bert-japanese
/bert-base-japanese-char-config.json"
,
'bert-base-japanese-char-whole-word-masking'
:
"https://
www.nlp.ecei.tohoku.ac.jp/~m-suzuki/bert-japanese
/bert-base-japanese-char-whole-word-masking-config.json"
'bert-base-japanese'
:
"https://
s3.amazonaws.com/models.huggingface.co/bert/cl-tohoku
/bert-base-japanese-config.json"
,
'bert-base-japanese-whole-word-masking'
:
"https://
s3.amazonaws.com/models.huggingface.co/bert/cl-tohoku
/bert-base-japanese-whole-word-masking-config.json"
,
'bert-base-japanese-char'
:
"https://
s3.amazonaws.com/models.huggingface.co/bert/cl-tohoku
/bert-base-japanese-char-config.json"
,
'bert-base-japanese-char-whole-word-masking'
:
"https://
s3.amazonaws.com/models.huggingface.co/bert/cl-tohoku
/bert-base-japanese-char-whole-word-masking-config.json"
}
...
...
transformers/modeling_bert.py
View file @
36fc52a3
...
...
@@ -48,10 +48,10 @@ BERT_PRETRAINED_MODEL_ARCHIVE_MAP = {
'bert-base-cased-finetuned-mrpc'
:
"https://s3.amazonaws.com/models.huggingface.co/bert/bert-base-cased-finetuned-mrpc-pytorch_model.bin"
,
'bert-base-german-dbmdz-cased'
:
"https://s3.amazonaws.com/models.huggingface.co/bert/bert-base-german-dbmdz-cased-pytorch_model.bin"
,
'bert-base-german-dbmdz-uncased'
:
"https://s3.amazonaws.com/models.huggingface.co/bert/bert-base-german-dbmdz-uncased-pytorch_model.bin"
,
'bert-base-japanese'
:
"https://
www.nlp.ecei.tohoku.ac.jp/~m-suzuki/bert-japanese
/bert-base-japanese-pytorch_model.bin"
,
'bert-base-japanese-whole-word-masking'
:
"https://
www.nlp.ecei.tohoku.ac.jp/~m-suzuki/bert-japanese
/bert-base-japanese-whole-word-masking-pytorch_model.bin"
,
'bert-base-japanese-char'
:
"https://
www.nlp.ecei.tohoku.ac.jp/~m-suzuki/bert-japanese
/bert-base-japanese-char-pytorch_model.bin"
,
'bert-base-japanese-char-whole-word-masking'
:
"https://
www.nlp.ecei.tohoku.ac.jp/~m-suzuki/bert-japanese
/bert-base-japanese-char-whole-word-masking-pytorch_model.bin"
'bert-base-japanese'
:
"https://
s3.amazonaws.com/models.huggingface.co/bert/cl-tohoku
/bert-base-japanese-pytorch_model.bin"
,
'bert-base-japanese-whole-word-masking'
:
"https://
s3.amazonaws.com/models.huggingface.co/bert/cl-tohoku
/bert-base-japanese-whole-word-masking-pytorch_model.bin"
,
'bert-base-japanese-char'
:
"https://
s3.amazonaws.com/models.huggingface.co/bert/cl-tohoku
/bert-base-japanese-char-pytorch_model.bin"
,
'bert-base-japanese-char-whole-word-masking'
:
"https://
s3.amazonaws.com/models.huggingface.co/bert/cl-tohoku
/bert-base-japanese-char-whole-word-masking-pytorch_model.bin"
}
...
...
transformers/modeling_tf_bert.py
View file @
36fc52a3
...
...
@@ -48,10 +48,10 @@ TF_BERT_PRETRAINED_MODEL_ARCHIVE_MAP = {
'bert-large-uncased-whole-word-masking-finetuned-squad'
:
"https://s3.amazonaws.com/models.huggingface.co/bert/bert-large-uncased-whole-word-masking-finetuned-squad-tf_model.h5"
,
'bert-large-cased-whole-word-masking-finetuned-squad'
:
"https://s3.amazonaws.com/models.huggingface.co/bert/bert-large-cased-whole-word-masking-finetuned-squad-tf_model.h5"
,
'bert-base-cased-finetuned-mrpc'
:
"https://s3.amazonaws.com/models.huggingface.co/bert/bert-base-cased-finetuned-mrpc-tf_model.h5"
,
'bert-base-japanese'
:
"https://
www.nlp.ecei.tohoku.ac.jp/~m-suzuki/bert-japanese
/bert-base-japanese-tf_model.h5"
,
'bert-base-japanese-whole-word-masking'
:
"https://
www.nlp.ecei.tohoku.ac.jp/~m-suzuki/bert-japanese
/bert-base-japanese-whole-word-masking-tf_model.h5"
,
'bert-base-japanese-char'
:
"https://
www.nlp.ecei.tohoku.ac.jp/~m-suzuki/bert-japanese
/bert-base-japanese-char-tf_model.h5"
,
'bert-base-japanese-char-whole-word-masking'
:
"https://
www.nlp.ecei.tohoku.ac.jp/~m-suzuki/bert-japanese
/bert-base-japanese-char-whole-word-masking-tf_model.h5"
'bert-base-japanese'
:
"https://
s3.amazonaws.com/models.huggingface.co/bert/cl-tohoku
/bert-base-japanese-tf_model.h5"
,
'bert-base-japanese-whole-word-masking'
:
"https://
s3.amazonaws.com/models.huggingface.co/bert/cl-tohoku
/bert-base-japanese-whole-word-masking-tf_model.h5"
,
'bert-base-japanese-char'
:
"https://
s3.amazonaws.com/models.huggingface.co/bert/cl-tohoku
/bert-base-japanese-char-tf_model.h5"
,
'bert-base-japanese-char-whole-word-masking'
:
"https://
s3.amazonaws.com/models.huggingface.co/bert/cl-tohoku
/bert-base-japanese-char-whole-word-masking-tf_model.h5"
}
...
...
transformers/tokenization_bert_japanese.py
View file @
36fc52a3
...
...
@@ -33,10 +33,10 @@ VOCAB_FILES_NAMES = {'vocab_file': 'vocab.txt'}
PRETRAINED_VOCAB_FILES_MAP
=
{
'vocab_file'
:
{
'bert-base-japanese'
:
"https://
www.nlp.ecei.tohoku.ac.jp/~m-suzuki/bert-japanese
/bert-base-japanese-vocab.txt"
,
'bert-base-japanese-whole-word-masking'
:
"https://
www.nlp.ecei.tohoku.ac.jp/~m-suzuki/bert-japanese
/bert-base-japanese-whole-word-masking-vocab.txt"
,
'bert-base-japanese-char'
:
"https://
www.nlp.ecei.tohoku.ac.jp/~m-suzuki/bert-japanese
/bert-base-japanese-char-vocab.txt"
,
'bert-base-japanese-char-whole-word-masking'
:
"https://
www.nlp.ecei.tohoku.ac.jp/~m-suzuki/bert-japanese
/bert-base-japanese-char-whole-word-masking-vocab.txt"
'bert-base-japanese'
:
"https://
s3.amazonaws.com/models.huggingface.co/bert/cl-tohoku
/bert-base-japanese-vocab.txt"
,
'bert-base-japanese-whole-word-masking'
:
"https://
s3.amazonaws.com/models.huggingface.co/bert/cl-tohoku
/bert-base-japanese-whole-word-masking-vocab.txt"
,
'bert-base-japanese-char'
:
"https://
s3.amazonaws.com/models.huggingface.co/bert/cl-tohoku
/bert-base-japanese-char-vocab.txt"
,
'bert-base-japanese-char-whole-word-masking'
:
"https://
s3.amazonaws.com/models.huggingface.co/bert/cl-tohoku
/bert-base-japanese-char-whole-word-masking-vocab.txt"
}
}
...
...
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