Michael Beukman
commited on
Commit
•
df688da
1
Parent(s):
b6e6928
Initial Commit
Browse files- config.json +51 -0
- eval_results.txt +15 -0
- pytorch_model.bin +3 -0
- sentencepiece.bpe.model +3 -0
- special_tokens_map.json +1 -0
- test_predictions.txt +0 -0
- test_results.txt +15 -0
- tokenizer.json +0 -0
- tokenizer_config.json +1 -0
- training_args.bin +3 -0
config.json
ADDED
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "Davlan/xlm-roberta-base-finetuned-luganda",
|
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.8046357615894039
|
2 |
+
loss = 0.24012932592624567
|
3 |
+
precision = 0.7689873417721519
|
4 |
+
recall = 0.84375
|
5 |
+
report = precision recall f1-score support
|
6 |
+
|
7 |
+
DATE 0.79 0.72 0.75 32
|
8 |
+
LOC 0.63 0.80 0.71 56
|
9 |
+
ORG 0.50 0.67 0.57 30
|
10 |
+
PER 0.88 0.91 0.90 170
|
11 |
+
|
12 |
+
micro avg 0.77 0.84 0.80 288
|
13 |
+
macro avg 0.70 0.78 0.73 288
|
14 |
+
weighted avg 0.78 0.84 0.81 288
|
15 |
+
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ff300fcd19efa878a7caf1cbcc399de4b2620bf2f4469ad307a5561ef1c84782
|
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.8537414965986394
|
2 |
+
loss = 0.2113010978008984
|
3 |
+
precision = 0.8274725274725274
|
4 |
+
recall = 0.8817330210772834
|
5 |
+
report = precision recall f1-score support
|
6 |
+
|
7 |
+
DATE 0.75 0.81 0.78 113
|
8 |
+
LOC 0.80 0.85 0.82 209
|
9 |
+
ORG 0.74 0.88 0.80 153
|
10 |
+
PER 0.91 0.93 0.92 379
|
11 |
+
|
12 |
+
micro avg 0.83 0.88 0.85 854
|
13 |
+
macro avg 0.80 0.86 0.83 854
|
14 |
+
weighted avg 0.83 0.88 0.85 854
|
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-luganda", "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:69d24a5fcdacbfff58fbd2fa3ff8951ac2ebc72ef78106b089180231a1a2949e
|
3 |
+
size 1583
|