monsoon-nlp commited on
Commit
aee566e
1 Parent(s): 0f83304
README.md ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language: dv
3
+ ---
4
+
5
+ # dv-muril
6
+
7
+ This is an experiment in transfer learning, to insert Dhivehi word and
8
+ word-piece tokens into Google's MuRIL model.
9
+
10
+ This BERT-based model currently performs better than dv-wave ELECTRA on
11
+ the Maldivian News Classification task https://github.com/Sofwath/DhivehiDatasets
12
+
13
+ ## Training
14
+
15
+ - Start with MuRIL (similar to mBERT) with no Thaana vocabulary
16
+ - Based on PanLex dictionaries, attach 1,100 Dhivehi words to Malayalam or English embeddings
17
+ - Add remaining words and word-pieces from dv-wave to vocab.txt
18
+ - Continue BERT pretraining on a TPU
19
+
20
+ CoLab notebook:
21
+ https://colab.research.google.com/drive/1kPyd60EtOFLaHRVToNS-IKj29T9JCvMq?usp=sharing
config.json ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "BertForMaskedLM"
4
+ ],
5
+ "attention_probs_dropout_prob": 0.1,
6
+ "embedding_size": 768,
7
+ "gradient_checkpointing": false,
8
+ "hidden_act": "gelu",
9
+ "hidden_dropout_prob": 0.1,
10
+ "hidden_size": 768,
11
+ "initializer_range": 0.02,
12
+ "intermediate_size": 3072,
13
+ "layer_norm_eps": 1e-12,
14
+ "max_position_embeddings": 512,
15
+ "model_type": "bert",
16
+ "num_attention_heads": 12,
17
+ "num_hidden_layers": 12,
18
+ "pad_token_id": 0,
19
+ "position_embedding_type": "absolute",
20
+ "type_vocab_size": 2,
21
+ "vocab_size": 225175
22
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a73c8b0f83fd28c74dca57854d254453e5ea4b948e07ae980eb56febfe6a2c0b
3
+ size 1036895067
special_tokens_map.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"unk_token": "[UNK]", "sep_token": "[SEP]", "pad_token": "[PAD]", "cls_token": "[CLS]", "mask_token": "[MASK]"}
tokenizer_config.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"do_lower_case": false, "do_basic_tokenize": true, "never_split": null, "unk_token": "[UNK]", "sep_token": "[SEP]", "pad_token": "[PAD]", "cls_token": "[CLS]", "mask_token": "[MASK]", "tokenize_chinese_chars": true, "strip_accents": false, "lowercase": false, "special_tokens_map_file": "/root/.cache/huggingface/transformers/d66e90c2d485729cd831f5a30ce5724c25dcfbff7055265820652f3277c1412e.750293617705dd39d21eef1e163d80ca5b23e1a0ec507fff24a087c44632142c", "tokenizer_file": null, "name_or_path": "./dvadd"}
vocab.txt ADDED
The diff for this file is too large to render. See raw diff