Text Classification
Transformers
Safetensors
English
bert_universal_classifier
feature-extraction
bert
insurance
universal
kinetic
riskguru
custom_code
Instructions to use injala/bert-universal-classifier-7class with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use injala/bert-universal-classifier-7class with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="injala/bert-universal-classifier-7class", trust_remote_code=True)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("injala/bert-universal-classifier-7class", trust_remote_code=True, dtype="auto") - Notebooks
- Google Colab
- Kaggle
| { | |
| "architectures": [ | |
| "BertUniversalClassifier" | |
| ], | |
| "attention_probs_dropout_prob": 0.1, | |
| "classifier_dropout": null, | |
| "hidden_act": "gelu", | |
| "hidden_dropout_prob": 0.1, | |
| "hidden_size": 768, | |
| "id2label": { | |
| "0": "acord", | |
| "1": "contract", | |
| "2": "declaration", | |
| "3": "endorsements", | |
| "4": "forms", | |
| "5": "others", | |
| "6": "rating" | |
| }, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 3072, | |
| "label2id": { | |
| "acord": 0, | |
| "contract": 1, | |
| "declaration": 2, | |
| "endorsements": 3, | |
| "forms": 4, | |
| "others": 5, | |
| "rating": 6 | |
| }, | |
| "layer_norm_eps": 1e-12, | |
| "max_position_embeddings": 512, | |
| "model_type": "bert_universal_classifier", | |
| "num_attention_heads": 12, | |
| "num_hidden_layers": 12, | |
| "pad_token_id": 0, | |
| "position_embedding_type": "absolute", | |
| "torch_dtype": "float32", | |
| "transformers_version": "4.29.2", | |
| "type_vocab_size": 2, | |
| "use_cache": true, | |
| "vocab_size": 30522, | |
| "auto_map": { | |
| "AutoConfig": "bert_universal_classifier_model.BertUniversalClassifierConfig", | |
| "AutoModel": "bert_universal_classifier_model.BertUniversalClassifier" | |
| } | |
| } |