Instructions to use finiteautomata/bert-contextualized-hate-category-es with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use finiteautomata/bert-contextualized-hate-category-es with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, BertForSequenceMultiClassification tokenizer = AutoTokenizer.from_pretrained("finiteautomata/bert-contextualized-hate-category-es") model = BertForSequenceMultiClassification.from_pretrained("finiteautomata/bert-contextualized-hate-category-es", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download tokenizer_config.json from finiteautomata/bert-contextualized-hate-category-es: direct link, hf CLI and curl.
- Browser
- Download file 502 Bytes
-
https://huggingface.co/finiteautomata/bert-contextualized-hate-category-es/resolve/main/tokenizer_config.json
- Command line
-
hf download hf://finiteautomata/bert-contextualized-hate-category-es/tokenizer_config.json
-
curl -L -o tokenizer_config.json https://huggingface.co/finiteautomata/bert-contextualized-hate-category-es/resolve/main/tokenizer_config.json
502 Bytes
| {"do_lower_case": false, "unk_token": "[UNK]", "sep_token": "[SEP]", "pad_token": "[PAD]", "cls_token": "[CLS]", "mask_token": "[MASK]", "tokenize_chinese_chars": true, "strip_accents": null, "special_tokens_map_file": "/home/jmperez/.cache/huggingface/transformers/9848a00af462c42dfb4ec88ef438fbab5256330f7f6f50badc48d277f9367d49.dd8bd9bfd3664b530ea4e645105f557769387b3da9f79bdb55ed556bdd80611d", "name_or_path": "dccuchile/bert-base-spanish-wwm-cased", "do_basic_tokenize": true, "never_split": null} |