Instructions to use jsm33/irony-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use jsm33/irony-classifier with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, RobertaForSequenceClassificationWithSentiment tokenizer = AutoTokenizer.from_pretrained("jsm33/irony-classifier") model = RobertaForSequenceClassificationWithSentiment.from_pretrained("jsm33/irony-classifier", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download tokenizer_config.json from jsm33/irony-classifier: direct link, hf CLI and curl.
- Browser
- Download file 237 Bytes
-
https://huggingface.co/jsm33/irony-classifier/resolve/main/tokenizer_config.json
- Command line
-
hf download hf://jsm33/irony-classifier/tokenizer_config.json
-
curl -L -o tokenizer_config.json https://huggingface.co/jsm33/irony-classifier/resolve/main/tokenizer_config.json
237 Bytes
| {"normalization": true, "bos_token": "<s>", "eos_token": "</s>", "sep_token": "</s>", "cls_token": "<s>", "unk_token": "<unk>", "pad_token": "<pad>", "mask_token": "<mask>", "model_max_length": 128, "name_or_path": "vinai/bertweet-base"} |