Instructions to use QomSSLab/verdict_type_classifer_v1-v4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use QomSSLab/verdict_type_classifer_v1-v4 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="QomSSLab/verdict_type_classifer_v1-v4")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("QomSSLab/verdict_type_classifer_v1-v4") model = AutoModelForSequenceClassification.from_pretrained("QomSSLab/verdict_type_classifer_v1-v4", device_map="auto") - Notebooks
- Google Colab
- Kaggle
QomSSLab/verdict_type_classifer_v1-v4
This repository hosts a sequence-classification head trained for text classification. This copy is saved so it loads with transformers v4.
Usage
from transformers import AutoTokenizer, AutoModelForSequenceClassification, pipeline
model_id = "QomSSLab/verdict_type_classifer_v1-v4"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForSequenceClassification.from_pretrained(model_id)
classifier = pipeline("text-classification", model=model, tokenizer=tokenizer)
text = "مثال از یک ورودی فارسی"
print(classifier(text))
Labels
badviothertajdid
Metrics
Validation Metrics
- Precision: 1.0000
- Recall: 1.0000
- F1: 1.0000
- Accuracy: 1.0000
Per-label Breakdown
| Label | Precision | Recall | F1 | Support |
|---|---|---|---|---|
| badvi | 1.0000 | 1.0000 | 1.0000 | 263 |
| other | 1.0000 | 1.0000 | 1.0000 | 236 |
| tajdid | 1.0000 | 1.0000 | 1.0000 | 251 |
- Downloads last month
- -