entity_model_nov5
Browse files- README.md +68 -0
- config.json +73 -0
- model.safetensors +3 -0
- special_tokens_map.json +7 -0
- tokenizer.json +0 -0
- tokenizer_config.json +57 -0
- training_args.bin +3 -0
- vocab.txt +0 -0
README.md
ADDED
@@ -0,0 +1,68 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: cc-by-sa-4.0
|
3 |
+
base_model: nlpaueb/bert-base-uncased-contracts
|
4 |
+
tags:
|
5 |
+
- generated_from_trainer
|
6 |
+
model-index:
|
7 |
+
- name: entity_model
|
8 |
+
results: []
|
9 |
+
---
|
10 |
+
|
11 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
12 |
+
should probably proofread and complete it, then remove this comment. -->
|
13 |
+
|
14 |
+
# entity_model
|
15 |
+
|
16 |
+
This model is a fine-tuned version of [nlpaueb/bert-base-uncased-contracts](https://huggingface.co/nlpaueb/bert-base-uncased-contracts) on the None dataset.
|
17 |
+
It achieves the following results on the evaluation set:
|
18 |
+
- Loss: 0.0230
|
19 |
+
|
20 |
+
## Model description
|
21 |
+
|
22 |
+
More information needed
|
23 |
+
|
24 |
+
## Intended uses & limitations
|
25 |
+
|
26 |
+
More information needed
|
27 |
+
|
28 |
+
## Training and evaluation data
|
29 |
+
|
30 |
+
More information needed
|
31 |
+
|
32 |
+
## Training procedure
|
33 |
+
|
34 |
+
### Training hyperparameters
|
35 |
+
|
36 |
+
The following hyperparameters were used during training:
|
37 |
+
- learning_rate: 2e-05
|
38 |
+
- train_batch_size: 8
|
39 |
+
- eval_batch_size: 8
|
40 |
+
- seed: 42
|
41 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
42 |
+
- lr_scheduler_type: linear
|
43 |
+
- lr_scheduler_warmup_steps: 100
|
44 |
+
- num_epochs: 10
|
45 |
+
- mixed_precision_training: Native AMP
|
46 |
+
|
47 |
+
### Training results
|
48 |
+
|
49 |
+
| Training Loss | Epoch | Step | Validation Loss |
|
50 |
+
|:-------------:|:-----:|:----:|:---------------:|
|
51 |
+
| 0.2326 | 1.0 | 208 | 0.1823 |
|
52 |
+
| 0.1492 | 2.0 | 416 | 0.1103 |
|
53 |
+
| 0.1086 | 3.0 | 624 | 0.0816 |
|
54 |
+
| 0.0727 | 4.0 | 832 | 0.0594 |
|
55 |
+
| 0.0652 | 5.0 | 1040 | 0.0471 |
|
56 |
+
| 0.0594 | 6.0 | 1248 | 0.0388 |
|
57 |
+
| 0.0472 | 7.0 | 1456 | 0.0327 |
|
58 |
+
| 0.0417 | 8.0 | 1664 | 0.0283 |
|
59 |
+
| 0.0353 | 9.0 | 1872 | 0.0250 |
|
60 |
+
| 0.0289 | 10.0 | 2080 | 0.0230 |
|
61 |
+
|
62 |
+
|
63 |
+
### Framework versions
|
64 |
+
|
65 |
+
- Transformers 4.42.0
|
66 |
+
- Pytorch 2.5.0+cu121
|
67 |
+
- Datasets 3.1.0
|
68 |
+
- Tokenizers 0.19.1
|
config.json
ADDED
@@ -0,0 +1,73 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "nlpaueb/bert-base-uncased-contracts",
|
3 |
+
"architectures": [
|
4 |
+
"BertForTokenClassification"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.1,
|
7 |
+
"classifier_dropout": null,
|
8 |
+
"eos_token_ids": null,
|
9 |
+
"hidden_act": "gelu",
|
10 |
+
"hidden_dropout_prob": 0.1,
|
11 |
+
"hidden_size": 768,
|
12 |
+
"id2label": {
|
13 |
+
"0": "O",
|
14 |
+
"1": "B-AGREEMENT_DATE",
|
15 |
+
"2": "B-COST",
|
16 |
+
"3": "B-DOCUMENT_NAME",
|
17 |
+
"4": "B-EFFECTIVE_DATE",
|
18 |
+
"5": "B-EXPIRATION_DATE",
|
19 |
+
"6": "B-GOVERNING_LAW",
|
20 |
+
"7": "B-NOTICE_PERIOD_TO_TERMINATE_RENEWAL",
|
21 |
+
"8": "B-PARTIES",
|
22 |
+
"9": "B-PARTY_ADDRESS",
|
23 |
+
"10": "B-RENEWAL_TERM",
|
24 |
+
"11": "I-AGREEMENT_DATE",
|
25 |
+
"12": "I-COST",
|
26 |
+
"13": "I-DOCUMENT_NAME",
|
27 |
+
"14": "I-EFFECTIVE_DATE",
|
28 |
+
"15": "I-EXPIRATION_DATE",
|
29 |
+
"16": "I-GOVERNING_LAW",
|
30 |
+
"17": "I-NOTICE_PERIOD_TO_TERMINATE_RENEWAL",
|
31 |
+
"18": "I-PARTIES",
|
32 |
+
"19": "I-PARTY_ADDRESS",
|
33 |
+
"20": "I-RENEWAL_TERM"
|
34 |
+
},
|
35 |
+
"initializer_range": 0.02,
|
36 |
+
"intermediate_size": 3072,
|
37 |
+
"label2id": {
|
38 |
+
"B-AGREEMENT_DATE": 1,
|
39 |
+
"B-COST": 2,
|
40 |
+
"B-DOCUMENT_NAME": 3,
|
41 |
+
"B-EFFECTIVE_DATE": 4,
|
42 |
+
"B-EXPIRATION_DATE": 5,
|
43 |
+
"B-GOVERNING_LAW": 6,
|
44 |
+
"B-NOTICE_PERIOD_TO_TERMINATE_RENEWAL": 7,
|
45 |
+
"B-PARTIES": 8,
|
46 |
+
"B-PARTY_ADDRESS": 9,
|
47 |
+
"B-RENEWAL_TERM": 10,
|
48 |
+
"I-AGREEMENT_DATE": 11,
|
49 |
+
"I-COST": 12,
|
50 |
+
"I-DOCUMENT_NAME": 13,
|
51 |
+
"I-EFFECTIVE_DATE": 14,
|
52 |
+
"I-EXPIRATION_DATE": 15,
|
53 |
+
"I-GOVERNING_LAW": 16,
|
54 |
+
"I-NOTICE_PERIOD_TO_TERMINATE_RENEWAL": 17,
|
55 |
+
"I-PARTIES": 18,
|
56 |
+
"I-PARTY_ADDRESS": 19,
|
57 |
+
"I-RENEWAL_TERM": 20,
|
58 |
+
"O": 0
|
59 |
+
},
|
60 |
+
"layer_norm_eps": 1e-12,
|
61 |
+
"max_position_embeddings": 512,
|
62 |
+
"model_type": "bert",
|
63 |
+
"num_attention_heads": 12,
|
64 |
+
"num_hidden_layers": 12,
|
65 |
+
"output_past": true,
|
66 |
+
"pad_token_id": null,
|
67 |
+
"position_embedding_type": "absolute",
|
68 |
+
"torch_dtype": "float32",
|
69 |
+
"transformers_version": "4.42.0",
|
70 |
+
"type_vocab_size": 2,
|
71 |
+
"use_cache": true,
|
72 |
+
"vocab_size": 30522
|
73 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a1c0eb2fa4d193340c434b18d49f339a4f864f89e010a9cc3b9007a40e2ee480
|
3 |
+
size 435654532
|
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 |
+
}
|
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 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3c8ece6c976f9ec1d45ceaedd542e1d291ceb051bdbf357a9b2c69e1a48ac193
|
3 |
+
size 5112
|
vocab.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|