Instructions to use Aardiiiiy/indobert-base-Indonesian-emotion-analysis-v11 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Aardiiiiy/indobert-base-Indonesian-emotion-analysis-v11 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Aardiiiiy/indobert-base-Indonesian-emotion-analysis-v11")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Aardiiiiy/indobert-base-Indonesian-emotion-analysis-v11") model = AutoModelForSequenceClassification.from_pretrained("Aardiiiiy/indobert-base-Indonesian-emotion-analysis-v11") - Notebooks
- Google Colab
- Kaggle
| { | |
| "_name_or_path": "/content/drive/My Drive/Learning17/model-NusaBERT-emotion", | |
| "architectures": [ | |
| "BertForSequenceClassification" | |
| ], | |
| "attention_probs_dropout_prob": 0.2, | |
| "bos_token_id": 0, | |
| "classifier_dropout": null, | |
| "eos_token_ids": 0, | |
| "gradient_checkpointing": false, | |
| "hidden_act": "gelu", | |
| "hidden_dropout_prob": 0.2, | |
| "hidden_size": 768, | |
| "id2label": { | |
| "0": "Trust", | |
| "1": "Surprise", | |
| "2": "Sadness", | |
| "3": "Joy", | |
| "4": "Fear", | |
| "5": "Disgust", | |
| "6": "Anticipation", | |
| "7": "Anger" | |
| }, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 3072, | |
| "label2id": { | |
| "Trust": 0, | |
| "Surprise": 1, | |
| "Sadness": 2, | |
| "Joy": 3, | |
| "Fear": 4, | |
| "Disgust": 5, | |
| "Anticipation": 6, | |
| "Anger": 7 | |
| }, | |
| "layer_norm_eps": 1e-12, | |
| "max_position_embeddings": 512, | |
| "model_type": "bert", | |
| "num_attention_heads": 12, | |
| "num_hidden_layers": 12, | |
| "output_past": true, | |
| "pad_token_id": 0, | |
| "position_embedding_type": "absolute", | |
| "problem_type": "single_label_classification", | |
| "torch_dtype": "float32", | |
| "transformers_version": "4.42.4", | |
| "type_vocab_size": 2, | |
| "use_cache": true, | |
| "vocab_size": 31923 | |
| } | |