How to use from the
Use from the
Transformers library
# Gated model: Login with a HF token with gated access permission
hf auth login
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("text-classification", model="QomSSLab/verdict_type_classifer_v1")
# pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification

tokenizer = AutoTokenizer.from_pretrained("QomSSLab/verdict_type_classifer_v1")
model = AutoModelForSequenceClassification.from_pretrained("QomSSLab/verdict_type_classifer_v1", device_map="auto")
Quick Links

You need to agree to share your Hugging Face information to access this model

This repository is publicly accessible, but you have to accept the conditions to access its files and content.

Log in or Sign Up to review the conditions and access this model content.

QomSSLab/verdict_type_classifer_v1

This repository hosts a sequence-classification head trained for text classification.

Usage

from transformers import AutoTokenizer, AutoModelForSequenceClassification, pipeline

model_id = "QomSSLab/verdict_type_classifer_v1"
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

  • badvi
  • other
  • tajdid

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
7
Safetensors
Model size
0.3B params
Tensor type
F32
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support