Michael Beukman commited on
Commit
4e48727
1 Parent(s): 7db0516

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.9276218611521417
2
+ loss = 0.16121720762826694
3
+ precision = 0.9141193595342066
4
+ recall = 0.9415292353823088
5
+ report = precision recall f1-score support
6
+
7
+ DATE 0.80 0.83 0.82 99
8
+ LOC 0.96 0.96 0.96 294
9
+ ORG 0.83 0.95 0.88 75
10
+ PER 0.94 0.96 0.95 199
11
+
12
+ micro avg 0.91 0.94 0.93 667
13
+ macro avg 0.88 0.93 0.90 667
14
+ weighted avg 0.92 0.94 0.93 667
15
+
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c7d37b151809d6619a010c4ed43daa935b068b75808e594f02ec943d39ff4237
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.8914431673052362
2
+ loss = 0.1656176846030892
3
+ precision = 0.8717735220649458
4
+ recall = 0.912020905923345
5
+ report = precision recall f1-score support
6
+
7
+ DATE 0.79 0.84 0.82 164
8
+ LOC 0.93 0.93 0.93 512
9
+ ORG 0.69 0.84 0.76 132
10
+ PER 0.91 0.95 0.93 340
11
+
12
+ micro avg 0.87 0.91 0.89 1148
13
+ macro avg 0.83 0.89 0.86 1148
14
+ weighted avg 0.88 0.91 0.89 1148
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:9f2a68cdadcce61d12647cbe5583ef3cc56d085b4fe8534656c80030ef78e40e
3
+ size 1583