Text Classification
Transformers
Safetensors
Indonesian
bert
emotion-classification
indonesian
thesis
text-embeddings-inference
Instructions to use iamviel/emotion-base-augmented with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use iamviel/emotion-base-augmented with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="iamviel/emotion-base-augmented")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("iamviel/emotion-base-augmented") model = AutoModelForSequenceClassification.from_pretrained("iamviel/emotion-base-augmented", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download config.json from iamviel/emotion-base-augmented: direct link, hf CLI and curl.
- Browser
- Download file 1.4 kB
-
https://huggingface.co/iamviel/emotion-base-augmented/resolve/main/config.json
- Command line
-
hf download hf://iamviel/emotion-base-augmented/config.json
-
curl -L -o config.json https://huggingface.co/iamviel/emotion-base-augmented/resolve/main/config.json
1.4 kB
| { | |
| "_num_labels": 5, | |
| "add_cross_attention": false, | |
| "architectures": [ | |
| "BertForSequenceClassification" | |
| ], | |
| "attention_probs_dropout_prob": 0.1, | |
| "bos_token_id": null, | |
| "classifier_dropout": null, | |
| "decoder_start_token_id": null, | |
| "directionality": "bidi", | |
| "dtype": "float32", | |
| "eos_token_id": null, | |
| "finetuning_task": null, | |
| "hidden_act": "gelu", | |
| "hidden_dropout_prob": 0.1, | |
| "hidden_size": 768, | |
| "id2label": { | |
| "0": "Anger", | |
| "1": "Fear", | |
| "2": "Joy", | |
| "3": "Love", | |
| "4": "Neutral", | |
| "5": "Sad" | |
| }, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 3072, | |
| "is_decoder": false, | |
| "label2id": { | |
| "Anger": 0, | |
| "Fear": 1, | |
| "Joy": 2, | |
| "Love": 3, | |
| "Neutral": 4, | |
| "Sad": 5 | |
| }, | |
| "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, | |
| "pooler_fc_size": 768, | |
| "pooler_num_attention_heads": 12, | |
| "pooler_num_fc_layers": 3, | |
| "pooler_size_per_head": 128, | |
| "pooler_type": "first_token_transform", | |
| "prefix": null, | |
| "pruned_heads": {}, | |
| "task_specific_params": null, | |
| "tie_word_embeddings": true, | |
| "torchscript": false, | |
| "transformers_version": "5.10.2", | |
| "type_vocab_size": 2, | |
| "use_bfloat16": false, | |
| "use_cache": true, | |
| "vocab_size": 50000 | |
| } | |