-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathconfig.py
39 lines (38 loc) · 1.76 KB
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Pretrained models configuration, add model configuration here
PRETRAINED_MODELS = {
'bert_large_uncased': {
'bucket_location': 'pretrained_models/bert/keras_bert/uncased_L-24_H-1024_A-16',
'hub_url': 'tensorflow/bert_en_uncased_L-24_H-1024_A-16/2',
'config': 'bert_config_large_uncased.json',
'is_tfhub_model': True,
'vocab_file': 'bert-large-uncased-vocab.txt',
'lower_case': True,
'do_whole_word_masking': False
},
'bert_multi_cased': {
'bucket_location': 'pretrained_models/bert/keras_bert/multi_cased_L-12_H-768_A-12',
'hub_url': 'tensorflow/bert_multi_cased_L-12_H-768_A-12/2',
'config': 'bert_config_multi_cased.json',
'is_tfhub_model': True,
'vocab_file': 'bert-multi-cased-vocab.txt',
'lower_case': False,
'do_whole_word_masking': False
},
'bert_large_uncased_wwm': {
'bucket_location': 'pretrained_models/bert/keras_bert/wwm_uncased_L-24_H-1024_A-16',
'hub_url': 'tensorflow/bert_en_wwm_uncased_L-24_H-1024_A-16/2',
'config': 'bert_config_large_uncased_wwm.json',
'is_tfhub_model': True,
'vocab_file': 'bert-large-uncased-whole-word-masking-vocab.txt',
'lower_case': True,
'do_whole_word_masking': True
},
'covid-twitter-bert': {
'hub_url': 'digitalepidemiologylab/covid-twitter-bert/1',
'is_tfhub_model': True,
'config': 'bert_config_covid_twitter_bert.json',
'vocab_file': 'bert-large-uncased-whole-word-masking-vocab.txt',
'lower_case': True,
'do_whole_word_masking': True
}
}