Instructions to use AdapterHub/bert-base-uncased-pf-emotion with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Adapters
How to use AdapterHub/bert-base-uncased-pf-emotion with Adapters:
from adapters import AutoAdapterModel model = AutoAdapterModel.from_pretrained("bert-base-uncased") model.load_adapter("AdapterHub/bert-base-uncased-pf-emotion", set_active=True) - Notebooks
- Google Colab
- Kaggle
Download head_config.json from AdapterHub/bert-base-uncased-pf-emotion: direct link, hf CLI and curl.
- Browser
- Download file 447 Bytes
-
https://huggingface.co/AdapterHub/bert-base-uncased-pf-emotion/resolve/main/head_config.json
- Command line
-
hf download hf://AdapterHub/bert-base-uncased-pf-emotion/head_config.json
-
curl -L -o head_config.json https://huggingface.co/AdapterHub/bert-base-uncased-pf-emotion/resolve/main/head_config.json
447 Bytes
| { | |
| "config": { | |
| "activation_function": "tanh", | |
| "bias": true, | |
| "head_type": "classification", | |
| "label2id": { | |
| "sadness": 0, | |
| "joy": 1, | |
| "love": 2, | |
| "anger": 3, | |
| "fear": 4, | |
| "surprise": 5 | |
| }, | |
| "layers": 2, | |
| "num_labels": 6, | |
| "use_pooler": false | |
| }, | |
| "hidden_size": 768, | |
| "model_class": "BertModelWithHeads", | |
| "model_name": "bert-base-uncased", | |
| "model_type": "bert", | |
| "name": "emotion" | |
| } |