Michael Beukman commited on
Commit
5288248
1 Parent(s): f8f8ebc

Initial Commit

Browse files
config.json ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "Davlan/xlm-roberta-base-finetuned-swahili",
3
+ "architectures": [
4
+ "XLMRobertaForTokenClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "bos_token_id": 0,
8
+ "classifier_dropout": null,
9
+ "eos_token_id": 2,
10
+ "gradient_checkpointing": false,
11
+ "hidden_act": "gelu",
12
+ "hidden_dropout_prob": 0.1,
13
+ "hidden_size": 768,
14
+ "id2label": {
15
+ "0": "O",
16
+ "1": "B-DATE",
17
+ "2": "I-DATE",
18
+ "3": "B-PER",
19
+ "4": "I-PER",
20
+ "5": "B-ORG",
21
+ "6": "I-ORG",
22
+ "7": "B-LOC",
23
+ "8": "I-LOC"
24
+ },
25
+ "initializer_range": 0.02,
26
+ "intermediate_size": 3072,
27
+ "label2id": {
28
+ "B-DATE": 1,
29
+ "B-LOC": 7,
30
+ "B-ORG": 5,
31
+ "B-PER": 3,
32
+ "I-DATE": 2,
33
+ "I-LOC": 8,
34
+ "I-ORG": 6,
35
+ "I-PER": 4,
36
+ "O": 0
37
+ },
38
+ "layer_norm_eps": 1e-05,
39
+ "max_position_embeddings": 514,
40
+ "model_type": "xlm-roberta",
41
+ "num_attention_heads": 12,
42
+ "num_hidden_layers": 12,
43
+ "output_past": true,
44
+ "pad_token_id": 1,
45
+ "position_embedding_type": "absolute",
46
+ "torch_dtype": "float32",
47
+ "transformers_version": "4.11.3",
48
+ "type_vocab_size": 1,
49
+ "use_cache": true,
50
+ "vocab_size": 250002
51
+ }
eval_results.txt ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ f1 = 0.9389017788089715
2
+ loss = 0.0948441182770647
3
+ precision = 0.9267175572519084
4
+ recall = 0.95141065830721
5
+ report = precision recall f1-score support
6
+
7
+ DATE 0.91 0.96 0.94 109
8
+ LOC 0.94 0.98 0.96 63
9
+ ORG 0.80 0.91 0.85 45
10
+ PER 0.94 0.95 0.95 421
11
+
12
+ micro avg 0.93 0.95 0.94 638
13
+ macro avg 0.90 0.95 0.92 638
14
+ weighted avg 0.93 0.95 0.94 638
15
+
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a7659d70e14d5a985426cf01b06d7d48e556212eb08aea685189a849fe4adcf0
3
+ size 1109924593
sentencepiece.bpe.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cfc8146abe2a0488e9e2a0c56de7952f7c11ab059eca145a0a727afce0db2865
3
+ size 5069051
special_tokens_map.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"bos_token": "<s>", "eos_token": "</s>", "unk_token": "<unk>", "sep_token": "</s>", "pad_token": "<pad>", "cls_token": "<s>", "mask_token": {"content": "<mask>", "single_word": false, "lstrip": true, "rstrip": false, "normalized": false}}
test_predictions.txt ADDED
The diff for this file is too large to render. See raw diff
 
test_results.txt ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ f1 = 0.8911528150134048
2
+ loss = 0.10778984345014275
3
+ precision = 0.8784355179704016
4
+ recall = 0.9042437431991295
5
+ report = precision recall f1-score support
6
+
7
+ DATE 0.89 0.91 0.90 184
8
+ LOC 0.88 0.90 0.89 258
9
+ ORG 0.80 0.84 0.82 210
10
+ PER 0.93 0.96 0.94 267
11
+
12
+ micro avg 0.88 0.90 0.89 919
13
+ macro avg 0.88 0.90 0.89 919
14
+ weighted avg 0.88 0.90 0.89 919
15
+
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"bos_token": "<s>", "eos_token": "</s>", "sep_token": "</s>", "cls_token": "<s>", "unk_token": "<unk>", "pad_token": "<pad>", "mask_token": {"content": "<mask>", "single_word": false, "lstrip": true, "rstrip": false, "normalized": true, "__type": "AddedToken"}, "model_max_length": 512, "special_tokens_map_file": null, "name_or_path": "Davlan/xlm-roberta-base-finetuned-swahili", "sp_model_kwargs": {}, "tokenizer_class": "XLMRobertaTokenizer"}
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:83e9547833521c18e245d72972155e9e86bad1ae0e43840bd638079cf307e486
3
+ size 1583