Instructions to use tceron/high-risk-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use tceron/high-risk-classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="tceron/high-risk-classifier")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("tceron/high-risk-classifier") model = AutoModelForSequenceClassification.from_pretrained("tceron/high-risk-classifier", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -5,7 +5,17 @@ tags: []
|
|
| 5 |
|
| 6 |
# Model Card for Model ID
|
| 7 |
|
| 8 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
|
| 10 |
|
| 11 |
|
|
|
|
| 5 |
|
| 6 |
# Model Card for Model ID
|
| 7 |
|
| 8 |
+
This classifier classifier information seeking queries into 7 categories for high-risk sensitive queries.
|
| 9 |
+
|
| 10 |
+
Labels:
|
| 11 |
+
|
| 12 |
+
0: "Other",
|
| 13 |
+
1: "Economic and Financial",
|
| 14 |
+
2: "Health",
|
| 15 |
+
3: "Politics",
|
| 16 |
+
4: "Judicial and Legal",
|
| 17 |
+
5: "Moral Values and Religion",
|
| 18 |
+
6: "Security",
|
| 19 |
|
| 20 |
|
| 21 |
|