Text Classification
Transformers
Safetensors
multilingual
snt_classifier
feature-extraction
news
topic-classification
multi-label
xlm-roberta
custom_code
Instructions to use sweenk/snt-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use sweenk/snt-classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="sweenk/snt-classifier", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("sweenk/snt-classifier", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
SNT classifier v0.5.1
Browse files- config.json +1 -0
config.json
CHANGED
|
@@ -3,6 +3,7 @@
|
|
| 3 |
"SNTForNewsClassification"
|
| 4 |
],
|
| 5 |
"auto_map": {
|
|
|
|
| 6 |
"AutoModel": "modeling_snt.SNTForNewsClassification"
|
| 7 |
},
|
| 8 |
"dropout": 0.1,
|
|
|
|
| 3 |
"SNTForNewsClassification"
|
| 4 |
],
|
| 5 |
"auto_map": {
|
| 6 |
+
"AutoConfig": "modeling_snt.SNTConfig",
|
| 7 |
"AutoModel": "modeling_snt.SNTForNewsClassification"
|
| 8 |
},
|
| 9 |
"dropout": 0.1,
|