Commit
·
abca5f6
1
Parent(s):
bd17ba7
Training in progress epoch 0
Browse files- README.md +58 -0
- config.json +85 -0
- special_tokens_map.json +7 -0
- tf_model.h5 +3 -0
- tokenizer.json +0 -0
- tokenizer_config.json +57 -0
- vocab.txt +0 -0
README.md
ADDED
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: cc-by-sa-4.0
|
3 |
+
base_model: nlpaueb/legal-bert-base-uncased
|
4 |
+
tags:
|
5 |
+
- generated_from_keras_callback
|
6 |
+
model-index:
|
7 |
+
- name: Sidziesama/Legal_NER_Support_Model
|
8 |
+
results: []
|
9 |
+
---
|
10 |
+
|
11 |
+
<!-- This model card has been generated automatically according to the information Keras had access to. You should
|
12 |
+
probably proofread and complete it, then remove this comment. -->
|
13 |
+
|
14 |
+
# Sidziesama/Legal_NER_Support_Model
|
15 |
+
|
16 |
+
This model is a fine-tuned version of [nlpaueb/legal-bert-base-uncased](https://huggingface.co/nlpaueb/legal-bert-base-uncased) on an unknown dataset.
|
17 |
+
It achieves the following results on the evaluation set:
|
18 |
+
- Train Loss: 0.3771
|
19 |
+
- Validation Loss: 0.1228
|
20 |
+
- Train Precision: 0.8400
|
21 |
+
- Train Recall: 0.8644
|
22 |
+
- Train F1: 0.8520
|
23 |
+
- Train Accuracy: 0.9655
|
24 |
+
- Epoch: 0
|
25 |
+
|
26 |
+
## Model description
|
27 |
+
|
28 |
+
More information needed
|
29 |
+
|
30 |
+
## Intended uses & limitations
|
31 |
+
|
32 |
+
More information needed
|
33 |
+
|
34 |
+
## Training and evaluation data
|
35 |
+
|
36 |
+
More information needed
|
37 |
+
|
38 |
+
## Training procedure
|
39 |
+
|
40 |
+
### Training hyperparameters
|
41 |
+
|
42 |
+
The following hyperparameters were used during training:
|
43 |
+
- optimizer: {'name': 'AdamWeightDecay', 'learning_rate': {'module': 'keras.optimizers.schedules', 'class_name': 'PolynomialDecay', 'config': {'initial_learning_rate': 2e-05, 'decay_steps': 2945, 'end_learning_rate': 0.0, 'power': 1.0, 'cycle': False, 'name': None}, 'registered_name': None}, 'decay': 0.0, 'beta_1': 0.9, 'beta_2': 0.999, 'epsilon': 1e-08, 'amsgrad': False, 'weight_decay_rate': 0.01}
|
44 |
+
- training_precision: float32
|
45 |
+
|
46 |
+
### Training results
|
47 |
+
|
48 |
+
| Train Loss | Validation Loss | Train Precision | Train Recall | Train F1 | Train Accuracy | Epoch |
|
49 |
+
|:----------:|:---------------:|:---------------:|:------------:|:--------:|:--------------:|:-----:|
|
50 |
+
| 0.3771 | 0.1228 | 0.8400 | 0.8644 | 0.8520 | 0.9655 | 0 |
|
51 |
+
|
52 |
+
|
53 |
+
### Framework versions
|
54 |
+
|
55 |
+
- Transformers 4.39.3
|
56 |
+
- TensorFlow 2.15.0
|
57 |
+
- Datasets 2.18.0
|
58 |
+
- Tokenizers 0.15.2
|
config.json
ADDED
@@ -0,0 +1,85 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "nlpaueb/legal-bert-base-uncased",
|
3 |
+
"architectures": [
|
4 |
+
"BertForTokenClassification"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.1,
|
7 |
+
"bos_token_id": 0,
|
8 |
+
"classifier_dropout": null,
|
9 |
+
"eos_token_ids": 0,
|
10 |
+
"hidden_act": "gelu",
|
11 |
+
"hidden_dropout_prob": 0.1,
|
12 |
+
"hidden_size": 768,
|
13 |
+
"id2label": {
|
14 |
+
"0": "B-CASE_NUMBER",
|
15 |
+
"1": "B-COURT",
|
16 |
+
"2": "B-DATE",
|
17 |
+
"3": "B-GPE",
|
18 |
+
"4": "B-JUDGE",
|
19 |
+
"5": "B-ORG",
|
20 |
+
"6": "B-OTHER_PERSON",
|
21 |
+
"7": "B-PETITIONER",
|
22 |
+
"8": "B-PRECEDENT",
|
23 |
+
"9": "B-PROVISION",
|
24 |
+
"10": "B-RESPONDENT",
|
25 |
+
"11": "B-STATUTE",
|
26 |
+
"12": "B-WITNESS",
|
27 |
+
"13": "I-CASE_NUMBER",
|
28 |
+
"14": "I-COURT",
|
29 |
+
"15": "I-DATE",
|
30 |
+
"16": "I-GPE",
|
31 |
+
"17": "I-JUDGE",
|
32 |
+
"18": "I-ORG",
|
33 |
+
"19": "I-OTHER_PERSON",
|
34 |
+
"20": "I-PETITIONER",
|
35 |
+
"21": "I-PRECEDENT",
|
36 |
+
"22": "I-PROVISION",
|
37 |
+
"23": "I-RESPONDENT",
|
38 |
+
"24": "I-STATUTE",
|
39 |
+
"25": "I-WITNESS",
|
40 |
+
"26": "O"
|
41 |
+
},
|
42 |
+
"initializer_range": 0.02,
|
43 |
+
"intermediate_size": 3072,
|
44 |
+
"label2id": {
|
45 |
+
"B-CASE_NUMBER": 0,
|
46 |
+
"B-COURT": 1,
|
47 |
+
"B-DATE": 2,
|
48 |
+
"B-GPE": 3,
|
49 |
+
"B-JUDGE": 4,
|
50 |
+
"B-ORG": 5,
|
51 |
+
"B-OTHER_PERSON": 6,
|
52 |
+
"B-PETITIONER": 7,
|
53 |
+
"B-PRECEDENT": 8,
|
54 |
+
"B-PROVISION": 9,
|
55 |
+
"B-RESPONDENT": 10,
|
56 |
+
"B-STATUTE": 11,
|
57 |
+
"B-WITNESS": 12,
|
58 |
+
"I-CASE_NUMBER": 13,
|
59 |
+
"I-COURT": 14,
|
60 |
+
"I-DATE": 15,
|
61 |
+
"I-GPE": 16,
|
62 |
+
"I-JUDGE": 17,
|
63 |
+
"I-ORG": 18,
|
64 |
+
"I-OTHER_PERSON": 19,
|
65 |
+
"I-PETITIONER": 20,
|
66 |
+
"I-PRECEDENT": 21,
|
67 |
+
"I-PROVISION": 22,
|
68 |
+
"I-RESPONDENT": 23,
|
69 |
+
"I-STATUTE": 24,
|
70 |
+
"I-WITNESS": 25,
|
71 |
+
"O": 26
|
72 |
+
},
|
73 |
+
"layer_norm_eps": 1e-12,
|
74 |
+
"max_position_embeddings": 512,
|
75 |
+
"model_type": "bert",
|
76 |
+
"num_attention_heads": 12,
|
77 |
+
"num_hidden_layers": 12,
|
78 |
+
"output_past": true,
|
79 |
+
"pad_token_id": 0,
|
80 |
+
"position_embedding_type": "absolute",
|
81 |
+
"transformers_version": "4.39.3",
|
82 |
+
"type_vocab_size": 2,
|
83 |
+
"use_cache": true,
|
84 |
+
"vocab_size": 30522
|
85 |
+
}
|
special_tokens_map.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"cls_token": "[CLS]",
|
3 |
+
"mask_token": "[MASK]",
|
4 |
+
"pad_token": "[PAD]",
|
5 |
+
"sep_token": "[SEP]",
|
6 |
+
"unk_token": "[UNK]"
|
7 |
+
}
|
tf_model.h5
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8586d1ed2561ac43311c6d467268e6fce4edaa5e5abbbb0c0c233863586e7613
|
3 |
+
size 435935284
|
tokenizer.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer_config.json
ADDED
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"added_tokens_decoder": {
|
3 |
+
"0": {
|
4 |
+
"content": "[PAD]",
|
5 |
+
"lstrip": false,
|
6 |
+
"normalized": false,
|
7 |
+
"rstrip": false,
|
8 |
+
"single_word": false,
|
9 |
+
"special": true
|
10 |
+
},
|
11 |
+
"100": {
|
12 |
+
"content": "[UNK]",
|
13 |
+
"lstrip": false,
|
14 |
+
"normalized": false,
|
15 |
+
"rstrip": false,
|
16 |
+
"single_word": false,
|
17 |
+
"special": true
|
18 |
+
},
|
19 |
+
"101": {
|
20 |
+
"content": "[CLS]",
|
21 |
+
"lstrip": false,
|
22 |
+
"normalized": false,
|
23 |
+
"rstrip": false,
|
24 |
+
"single_word": false,
|
25 |
+
"special": true
|
26 |
+
},
|
27 |
+
"102": {
|
28 |
+
"content": "[SEP]",
|
29 |
+
"lstrip": false,
|
30 |
+
"normalized": false,
|
31 |
+
"rstrip": false,
|
32 |
+
"single_word": false,
|
33 |
+
"special": true
|
34 |
+
},
|
35 |
+
"103": {
|
36 |
+
"content": "[MASK]",
|
37 |
+
"lstrip": false,
|
38 |
+
"normalized": false,
|
39 |
+
"rstrip": false,
|
40 |
+
"single_word": false,
|
41 |
+
"special": true
|
42 |
+
}
|
43 |
+
},
|
44 |
+
"clean_up_tokenization_spaces": true,
|
45 |
+
"cls_token": "[CLS]",
|
46 |
+
"do_basic_tokenize": true,
|
47 |
+
"do_lower_case": true,
|
48 |
+
"mask_token": "[MASK]",
|
49 |
+
"model_max_length": 512,
|
50 |
+
"never_split": null,
|
51 |
+
"pad_token": "[PAD]",
|
52 |
+
"sep_token": "[SEP]",
|
53 |
+
"strip_accents": null,
|
54 |
+
"tokenize_chinese_chars": true,
|
55 |
+
"tokenizer_class": "BertTokenizer",
|
56 |
+
"unk_token": "[UNK]"
|
57 |
+
}
|
vocab.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|