Initial upload of st2 BERT-large-NER BIO span extractor
Browse filesFiles changed (8)
- classification_report.txtAdded+20
- config.jsonAdded+47
- model.safetensorsAdded+3
- special_tokens_map.jsonAdded+7
- tokenizer.jsonAdded
- tokenizer_config.jsonAdded+58
- training_log.txtAdded+137
- vocab.txtAdded
1234567891011121314151617181920 precision recall f1-score support
O 0.99 0.95 0.97 75421 B-SUBJ 0.45 0.42 0.43 445 I-SUBJ 0.46 0.67 0.55 2120 B-OBJ 0.45 0.45 0.45 461 I-OBJ 0.45 0.81 0.58 2321
accuracy 0.93 80768 macro avg 0.56 0.66 0.60 80768weighted avg 0.95 0.93 0.94 80768
# Notes# Best dev macro F1: 0.7000 (epoch 6)# Model: dslim/bert-large-NER, 10 epochs, BIO token classification# Train/Dev/Test rows: 6791 / 627 / 631# Label scheme: O, B-SUBJ, I-SUBJ, B-OBJ, I-OBJ# Known span-level pattern: I-class F1 > B-class F1, so spans may be off-by-one# at boundaries. Resolver should expand spans to token boundaries when matching# to coref clusters by char-offset overlap.1234567891011121314151617181920212223242526272829303132333435363738394041424344454647{ "_name_or_path": "/content/drive/MyDrive/causalsense/checkpoints/st2_bert_large_ner", "architectures": [ "BertForTokenClassification" ], "attention_probs_dropout_prob": 0.1, "classifier_dropout": null, "directionality": "bidi", "eos_token_ids": null, "hidden_act": "gelu", "hidden_dropout_prob": 0.1, "hidden_size": 1024, "id2label": { "0": "O", "1": "B-SUBJ", "2": "I-SUBJ", "3": "B-OBJ", "4": "I-OBJ" }, "initializer_range": 0.02, "intermediate_size": 4096, "label2id": { "B-OBJ": 3, "B-SUBJ": 1, "I-OBJ": 4, "I-SUBJ": 2, "O": 0 }, "layer_norm_eps": 1e-12, "max_position_embeddings": 512, "model_type": "bert", "num_attention_heads": 16, "num_hidden_layers": 24, "output_past": true, "pad_token_id": 0, "pooler_fc_size": 768, "pooler_num_attention_heads": 12, "pooler_num_fc_layers": 3, "pooler_size_per_head": 128, "pooler_type": "first_token_transform", "position_embedding_type": "absolute", "torch_dtype": "float32", "transformers_version": "4.44.2", "type_vocab_size": 2, "use_cache": true, "vocab_size": 28996}123version https://git-lfs.github.com/spec/v1oid sha256:bc2fc78e38506ac197b39d6e506ad011d062b4ffe8dc76b7791b1c1b03e218basize 13301859641234567{ "cls_token": "[CLS]", "mask_token": "[MASK]", "pad_token": "[PAD]", "sep_token": "[SEP]", "unk_token": "[UNK]"}12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758{ "added_tokens_decoder": { "0": { "content": "[PAD]", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "100": { "content": "[UNK]", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "101": { "content": "[CLS]", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "102": { "content": "[SEP]", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "103": { "content": "[MASK]", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true } }, "clean_up_tokenization_spaces": true, "cls_token": "[CLS]", "do_basic_tokenize": true, "do_lower_case": false, "mask_token": "[MASK]", "max_len": 512, "model_max_length": 512, "never_split": null, "pad_token": "[PAD]", "sep_token": "[SEP]", "strip_accents": null, "tokenize_chinese_chars": true, "tokenizer_class": "BertTokenizer", "unk_token": "[UNK]"}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137st2 — EE.py (BIO token classification for subject/object spans)Model: dslim/bert-large-NERData: combined.csv (train) + News_data/dev.csv + Test_dataset/test.csvTrain/Dev/Test: 6791 / 627 / 631
================================================================Epoch 1, Loss: 0.15692909639547853 precision recall f1-score support O 0.95 0.97 0.96 71126 B-SUBJ 0.50 0.22 0.31 481 I-SUBJ 0.70 0.54 0.61 4183 B-OBJ 0.46 0.26 0.33 480 I-OBJ 0.57 0.59 0.58 3986 accuracy 0.92 80256 macro avg 0.64 0.52 0.56 80256weighted avg 0.91 0.92 0.92 80256dev macro F1 = 0.5571 *** saved ***
Epoch 2, Loss: 0.076583794336766 precision recall f1-score support O 0.94 0.98 0.96 71126 B-SUBJ 0.66 0.40 0.50 481 I-SUBJ 0.75 0.42 0.54 4183 B-OBJ 0.56 0.40 0.47 480 I-OBJ 0.62 0.54 0.58 3986 accuracy 0.92 80256 macro avg 0.71 0.55 0.61 80256weighted avg 0.91 0.92 0.91 80256dev macro F1 = 0.6084 *** saved ***
Epoch 3, Loss: 0.06505040774450582 precision recall f1-score support O 0.99 0.95 0.97 71126 B-SUBJ 0.54 0.57 0.56 481 I-SUBJ 0.63 0.74 0.68 4183 B-OBJ 0.52 0.59 0.55 480 I-OBJ 0.53 0.81 0.64 3986 accuracy 0.92 80256 macro avg 0.64 0.73 0.68 80256weighted avg 0.94 0.92 0.93 80256dev macro F1 = 0.6805 *** saved ***
Epoch 4, Loss: 0.05100112235557069 precision recall f1-score support O 0.99 0.95 0.97 71126 B-SUBJ 0.60 0.55 0.57 481 I-SUBJ 0.68 0.67 0.67 4183 B-OBJ 0.57 0.53 0.55 480 I-OBJ 0.50 0.88 0.64 3986 accuracy 0.92 80256 macro avg 0.67 0.72 0.68 80256weighted avg 0.94 0.92 0.93 80256dev macro F1 = 0.6806 *** saved ***
Epoch 5, Loss: 0.04952669816461446 precision recall f1-score support O 0.98 0.96 0.97 71126 B-SUBJ 0.58 0.57 0.57 481 I-SUBJ 0.71 0.58 0.64 4183 B-OBJ 0.57 0.54 0.56 480 I-OBJ 0.54 0.87 0.66 3986 accuracy 0.93 80256 macro avg 0.68 0.70 0.68 80256weighted avg 0.94 0.93 0.93 80256dev macro F1 = 0.6800
Epoch 6, Loss: 0.03766294808161226 precision recall f1-score support O 0.98 0.96 0.97 71126 B-SUBJ 0.55 0.64 0.59 481 I-SUBJ 0.64 0.79 0.71 4183 B-OBJ 0.55 0.60 0.58 480 I-OBJ 0.61 0.71 0.66 3986 accuracy 0.93 80256 macro avg 0.67 0.74 0.70 80256weighted avg 0.94 0.93 0.94 80256dev macro F1 = 0.7000 *** saved (BEST) ***
Epoch 7, Loss: 0.034522786220631506 precision recall f1-score support O 0.97 0.97 0.97 71126 B-SUBJ 0.60 0.54 0.57 481 I-SUBJ 0.63 0.70 0.66 4183 B-OBJ 0.59 0.55 0.57 480 I-OBJ 0.67 0.57 0.62 3986 accuracy 0.93 80256 macro avg 0.69 0.67 0.68 80256weighted avg 0.93 0.93 0.93 80256dev macro F1 = 0.6774
Epoch 8, Loss: 0.03382389528087943 precision recall f1-score support O 0.98 0.95 0.97 71126 B-SUBJ 0.57 0.57 0.57 481 I-SUBJ 0.63 0.73 0.67 4183 B-OBJ 0.56 0.57 0.57 480 I-OBJ 0.54 0.79 0.64 3986 accuracy 0.92 80256 macro avg 0.66 0.72 0.68 80256weighted avg 0.94 0.92 0.93 80256dev macro F1 = 0.6845
Epoch 9, Loss: 0.03163016356212799 precision recall f1-score support O 0.96 0.97 0.97 71126 B-SUBJ 0.54 0.61 0.58 481 I-SUBJ 0.76 0.48 0.59 4183 B-OBJ 0.55 0.61 0.58 480 I-OBJ 0.58 0.65 0.61 3986 accuracy 0.93 80256 macro avg 0.68 0.67 0.66 80256weighted avg 0.93 0.93 0.92 80256dev macro F1 = 0.6644
Epoch 10, Loss: 0.02971732596274438 precision recall f1-score support O 0.98 0.95 0.97 71126 B-SUBJ 0.59 0.58 0.59 481 I-SUBJ 0.66 0.67 0.67 4183 B-OBJ 0.56 0.56 0.56 480 I-OBJ 0.53 0.85 0.65 3986 accuracy 0.92 80256 macro avg 0.67 0.72 0.69 80256weighted avg 0.94 0.92 0.93 80256dev macro F1 = 0.6859
================================================================Test Set (best model from epoch 6): precision recall f1-score support O 0.99 0.95 0.97 75421 B-SUBJ 0.45 0.42 0.43 445 I-SUBJ 0.46 0.67 0.55 2120 B-OBJ 0.45 0.45 0.45 461 I-OBJ 0.45 0.81 0.58 2321 accuracy 0.93 80768 macro avg 0.56 0.66 0.60 80768weighted avg 0.95 0.93 0.94 80768classification_report.txtAdded+20
config.jsonAdded+47
model.safetensorsAdded+3
special_tokens_map.jsonAdded+7
tokenizer.jsonAdded
tokenizer_config.jsonAdded+58
training_log.txtAdded+137
vocab.txtAdded