Michael Beukman commited on
Commit
8df667d
1 Parent(s): 9b67306

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.7585266030013643
2
+ loss = 0.2639391198015288
3
+ precision = 0.7453083109919572
4
+ recall = 0.7722222222222223
5
+ report = precision recall f1-score support
6
+
7
+ DATE 0.77 0.77 0.77 86
8
+ LOC 0.76 0.82 0.79 123
9
+ ORG 0.60 0.62 0.61 55
10
+ PER 0.79 0.80 0.80 96
11
+
12
+ micro avg 0.75 0.77 0.76 360
13
+ macro avg 0.73 0.75 0.74 360
14
+ weighted avg 0.75 0.77 0.76 360
15
+
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bf62464da7223a6ee741f701470929117163ee266de5085feafe8c8e79210342
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.8029259896729777
2
+ loss = 0.2634817665319717
3
+ precision = 0.783375314861461
4
+ recall = 0.823477493380406
5
+ report = precision recall f1-score support
6
+
7
+ DATE 0.76 0.79 0.77 188
8
+ LOC 0.78 0.86 0.82 471
9
+ ORG 0.75 0.71 0.73 224
10
+ PER 0.85 0.88 0.86 250
11
+
12
+ micro avg 0.78 0.82 0.80 1133
13
+ macro avg 0.78 0.81 0.79 1133
14
+ weighted avg 0.78 0.82 0.80 1133
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:784178aff04cf26140dc3c2d7eca1b46a47f929217f508b09cd373709d6bc8b8
3
+ size 1583