Text Classification
Transformers
Safetensors
Spanish
xlm-roberta
spanish
conflict-detection
text-embeddings-inference
Instructions to use gefero/conflict_detection_ROBERTA_based with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use gefero/conflict_detection_ROBERTA_based with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="gefero/conflict_detection_ROBERTA_based")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("gefero/conflict_detection_ROBERTA_based") model = AutoModelForSequenceClassification.from_pretrained("gefero/conflict_detection_ROBERTA_based", device_map="auto") - Notebooks
- Google Colab
- Kaggle
| { | |
| "add_prefix_space": true, | |
| "backend": "tokenizers", | |
| "bos_token": "<s>", | |
| "cls_token": "<s>", | |
| "eos_token": "</s>", | |
| "is_local": true, | |
| "local_files_only": false, | |
| "mask_token": "<mask>", | |
| "max_length": 256, | |
| "model_max_length": 512, | |
| "pad_to_multiple_of": null, | |
| "pad_token": "<pad>", | |
| "pad_token_type_id": 0, | |
| "padding_side": "right", | |
| "sep_token": "</s>", | |
| "stride": 0, | |
| "tokenizer_class": "XLMRobertaTokenizer", | |
| "truncation_side": "right", | |
| "truncation_strategy": "longest_first", | |
| "unk_token": "<unk>" | |
| } | |