Download configuration_emoaxis.py from arnab04/roberta-base-emopillars-contextless: direct link, hf CLI and curl.
- Browser
- Download file 366 Bytes
-
https://huggingface.co/arnab04/roberta-base-emopillars-contextless/resolve/main/configuration_emoaxis.py
- Command line
-
hf download hf://arnab04/roberta-base-emopillars-contextless/configuration_emoaxis.py
-
curl -L -o configuration_emoaxis.py https://huggingface.co/arnab04/roberta-base-emopillars-contextless/resolve/main/configuration_emoaxis.py
366 Bytes
| from transformers import RobertaConfig | |
| class EmoAxisConfig(RobertaConfig): | |
| model_type = "emoaxis" | |
| def __init__(self, num_classes=28, freeze_upto=0, **kwargs): | |
| kwargs["max_position_embeddings"] = 514 | |
| kwargs["type_vocab_size"] = 1 | |
| super().__init__(**kwargs) | |
| self.num_classes = num_classes | |
| self.freeze_upto = freeze_upto | |