Text Classification
Transformers
TensorBoard
Safetensors
bert
Generated from Trainer
text-embeddings-inference
Instructions to use zera09/aspect_complaint_spanbert with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use zera09/aspect_complaint_spanbert with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="zera09/aspect_complaint_spanbert")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("zera09/aspect_complaint_spanbert") model = AutoModelForSequenceClassification.from_pretrained("zera09/aspect_complaint_spanbert", device_map="auto") - Notebooks
- Google Colab
- Kaggle
End of training
Browse filesFiles changed (14)
- README.mdAdded+81
- config.jsonAdded+57
- model.safetensorsAdded+3
- runs/Jun14_20-27-28_iit-p/events.out.tfevents.1718377052.iit-p.32987.0Added+3
- runs/Jun14_20-38-17_iit-p/events.out.tfevents.1718377699.iit-p.34727.0Added+3
- runs/Jun14_20-41-38_iit-p/events.out.tfevents.1718377901.iit-p.35800.0Added+3
- runs/Jun14_20-42-17_iit-p/events.out.tfevents.1718377940.iit-p.36120.0Added+3
- runs/Jun14_20-42-53_iit-p/events.out.tfevents.1718377975.iit-p.36440.0Added+3
- runs/Jun14_20-43-37_iit-p/events.out.tfevents.1718378020.iit-p.36763.0Added+3
- special_tokens_map.jsonAdded+7
- tokenizer.jsonAdded
- tokenizer_config.jsonAdded+57
- training_args.binAdded+3
- vocab.txtAdded
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081---base_model: SpanBERT/spanbert-large-casedtags:- generated_from_trainermetrics:- f1- accuracymodel-index:- name: aspect_complaint_spanbert results: []---
<!-- This model card has been generated automatically according to the information the Trainer had access to. Youshould probably proofread and complete it, then remove this comment. -->
# aspect_complaint_spanbert
This model is a fine-tuned version of [SpanBERT/spanbert-large-cased](https://huggingface.co/SpanBERT/spanbert-large-cased) on the None dataset.It achieves the following results on the evaluation set:- Loss: 0.2032- F1: 0.8368- Roc Auc: 0.8935- Accuracy: 0.5292
## Model description
More information needed
## Intended uses & limitations
More information needed
## Training and evaluation data
More information needed
## Training procedure
### Training hyperparameters
The following hyperparameters were used during training:- learning_rate: 2e-05- train_batch_size: 48- eval_batch_size: 48- seed: 42- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08- lr_scheduler_type: linear- num_epochs: 20
### Training results
| Training Loss | Epoch | Step | Validation Loss | F1 | Roc Auc | Accuracy ||:-------------:|:-----:|:----:|:---------------:|:------:|:-------:|:--------:|| No log | 1.0 | 97 | 0.2810 | 0.6988 | 0.7718 | 0.0 || No log | 2.0 | 194 | 0.2209 | 0.7688 | 0.8260 | 0.2577 || No log | 3.0 | 291 | 0.2017 | 0.7958 | 0.8477 | 0.3565 || No log | 4.0 | 388 | 0.1882 | 0.8120 | 0.8678 | 0.4184 || No log | 5.0 | 485 | 0.1773 | 0.8272 | 0.8693 | 0.4416 || 0.2417 | 6.0 | 582 | 0.1732 | 0.8262 | 0.8792 | 0.4811 || 0.2417 | 7.0 | 679 | 0.1719 | 0.8331 | 0.8795 | 0.4759 || 0.2417 | 8.0 | 776 | 0.1722 | 0.8341 | 0.8814 | 0.5017 || 0.2417 | 9.0 | 873 | 0.1797 | 0.8347 | 0.8818 | 0.4923 || 0.2417 | 10.0 | 970 | 0.1856 | 0.8328 | 0.8859 | 0.5112 || 0.1287 | 11.0 | 1067 | 0.1866 | 0.8343 | 0.8868 | 0.5275 || 0.1287 | 12.0 | 1164 | 0.1868 | 0.8378 | 0.8898 | 0.5258 || 0.1287 | 13.0 | 1261 | 0.1923 | 0.8322 | 0.8864 | 0.5120 || 0.1287 | 14.0 | 1358 | 0.1916 | 0.8400 | 0.8929 | 0.5387 || 0.1287 | 15.0 | 1455 | 0.1975 | 0.8368 | 0.8919 | 0.5421 || 0.0781 | 16.0 | 1552 | 0.1974 | 0.8403 | 0.8951 | 0.5369 || 0.0781 | 17.0 | 1649 | 0.2022 | 0.8329 | 0.8911 | 0.5241 || 0.0781 | 18.0 | 1746 | 0.2012 | 0.8360 | 0.8921 | 0.5284 || 0.0781 | 19.0 | 1843 | 0.2027 | 0.8367 | 0.8936 | 0.5335 || 0.0781 | 20.0 | 1940 | 0.2032 | 0.8368 | 0.8935 | 0.5292 |
### Framework versions
- Transformers 4.41.1- Pytorch 1.13.1+cu117- Datasets 2.19.1- Tokenizers 0.19.1123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657{ "_name_or_path": "SpanBERT/spanbert-large-cased", "architectures": [ "BertForSequenceClassification" ], "attention_probs_dropout_prob": 0.1, "classifier_dropout": null, "directionality": "bidi", "hidden_act": "gelu", "hidden_dropout_prob": 0.1, "hidden_size": 1024, "id2label": { "0": "Over-all_Complaint Label", "1": "provider_response", "2": "misc_info", "3": "credential_error", "4": "net_banking_issue", "5": "consumer_safety", "6": "review", "7": "no_aspects", "8": "general_query", "9": "financial_situation", "10": "financial_info", "11": "Complaint", "12": "Non Complaint" }, "initializer_range": 0.02, "intermediate_size": 4096, "label2id": { "Complaint": 11, "Non Complaint": 12, "Over-all_Complaint Label": 0, "consumer_safety": 5, "credential_error": 3, "financial_info": 10, "financial_situation": 9, "general_query": 8, "misc_info": 2, "net_banking_issue": 4, "no_aspects": 7, "provider_response": 1, "review": 6 }, "layer_norm_eps": 1e-12, "max_position_embeddings": 512, "model_type": "bert", "num_attention_heads": 16, "num_hidden_layers": 24, "pad_token_id": 0, "position_embedding_type": "absolute", "problem_type": "multi_label_classification", "torch_dtype": "float32", "transformers_version": "4.41.1", "type_vocab_size": 2, "use_cache": true, "vocab_size": 28996}123version https://git-lfs.github.com/spec/v1oid sha256:df67bc56d6ee097a5781cffe3fbf855d35440cffbee7e81ed412ca433046f85bsize 1334417364123version https://git-lfs.github.com/spec/v1oid sha256:8367a39de088403f403623847ede335d1542a7094436ca3b2a2ac0ee76be9431size 6243123version https://git-lfs.github.com/spec/v1oid sha256:55d5094b1b752af29ae76d3681ae95382cc66215d4fe497ff21007b4fe1fbfd3size 6128123version https://git-lfs.github.com/spec/v1oid sha256:840fb05d081d20ff41769c533ae248b1865f66114384fa965f0efc4b4e553c9dsize 4136123version https://git-lfs.github.com/spec/v1oid sha256:7bb84f068dfe9c2a8b141b22b7a7d2f631ab113e593ce0736e90541eb074da7bsize 4136123version https://git-lfs.github.com/spec/v1oid sha256:2805fc368683a12761374e493438179f1cd164d12f0067588f9c406899997664size 4136123version https://git-lfs.github.com/spec/v1oid sha256:b1b9f9fb82181534ceb88f33123502f9bdbfd729ea8000f3e71a8d9abb032dccsize 148781234567{ "cls_token": "[CLS]", "mask_token": "[MASK]", "pad_token": "[PAD]", "sep_token": "[SEP]", "unk_token": "[UNK]"}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657{ "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": true, "mask_token": "[MASK]", "model_max_length": 1000000000000000019884624838656, "never_split": null, "pad_token": "[PAD]", "sep_token": "[SEP]", "strip_accents": null, "tokenize_chinese_chars": true, "tokenizer_class": "BertTokenizer", "unk_token": "[UNK]"}123version https://git-lfs.github.com/spec/v1oid sha256:5924a9a5ab65cf61aa900006f43ac29b08497a89f6d6e04057a829b944f99723size 4667README.mdAdded+81
config.jsonAdded+57
model.safetensorsAdded+3
runs/Jun14_20-27-28_iit-p/events.out.tfevents.1718377052.iit-p.32987.0Added+3
runs/Jun14_20-38-17_iit-p/events.out.tfevents.1718377699.iit-p.34727.0Added+3
runs/Jun14_20-41-38_iit-p/events.out.tfevents.1718377901.iit-p.35800.0Added+3
runs/Jun14_20-42-17_iit-p/events.out.tfevents.1718377940.iit-p.36120.0Added+3
runs/Jun14_20-42-53_iit-p/events.out.tfevents.1718377975.iit-p.36440.0Added+3
runs/Jun14_20-43-37_iit-p/events.out.tfevents.1718378020.iit-p.36763.0Added+3
special_tokens_map.jsonAdded+7
tokenizer.jsonAdded
tokenizer_config.jsonAdded+57
training_args.binAdded+3
vocab.txtAdded