Downloads · 30 days
13
15% of all-time downloads
humy65/hebrew-intent-classifier
hebrew-intent-classifier is a text classification model from humy65. Use it when you need a label for a piece of text. The card lists the license as apache-2.0.
This model is a fine-tuned BERT model for Hebrew intent classification, specifically designed for customer service scenarios. It can classify Hebrew text into 4 different intent categories commonly found in customer s…
Downloads · 30 days
13
15% of all-time downloads
All-time downloads
88
Public
Parameters
178M
1.1 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors711 MB · 99%
From the Hugging Face model README
This model is a fine-tuned BERT model for Hebrew intent classification, specifically designed for customer service scenarios. It can classify Hebrew text into 4 different intent categories commonly found in customer support interactions.
from transformers import pipeline
# Load the model
classifier = pipeline("text-classification", model="Huggingm1r@n/hebrew-intent-classifier")
# Make predictions
result = classifier("שכחתי את הסיסמה שלי")
print(result)
# [{'label': 'שכחת סיסמה', 'score': 0.95}]
# Test other examples
examples = [
"רוצה לבטל את המנוי",
"כמה עולה החבילה",
"האתר לא עובד"
]
for text in examples:
result = classifier(text)
print(f"'{text}' -> {result[0]['label']} ({result[0]['score']:.2%})")
from transformers import AutoTokenizer, AutoModelForSequenceClassification
import torch
# Load model and tokenizer
tokenizer = AutoTokenizer.from_pretrained("Huggingm1r@n/hebrew-intent-classifier")
model = AutoModelForSequenceClassification.from_pretrained("Huggingm1r@n/hebrew-intent-classifier")
def predict_intent(text):
inputs = tokenizer(text, return_tensors="pt", padding=True, truncation=True)
with torch.no_grad():
outputs = model(**inputs)
logits = outputs.logits
probabilities = torch.softmax(logits, dim=-1)
predicted_id = torch.argmax(logits, dim=-1).item()
predicted_label = model.config.id2label[predicted_id]
confidence = probabilities[0][predicted_id].item()
return predicted_label, confidence
# Example
intent, confidence = predict_intent("שכחתי את הסיסמה")
print(f"Intent: {intent}, Confidence: {confidence:.2%}")
| Hebrew Text | Predicted Intent | English Translation |
|---|---|---|
| שכחתי את הסיסמה שלי | שכחת סיסמה | I forgot my password |
| רוצה לבטל את המנוי | ביטול מנוי | Want to cancel subscription |
| כמה עולה החבילה | שאלה כללית | How much does the package cost |
| האתר לא עובד | תמיכה טכנית | The website doesn't work |
safetensors format for secure model storage@misc{hebrew-intent-classifier-2025,
title={Hebrew Intent Classification Model for Customer Service},
author={Huggingm1r@n},
year={2025},
publisher={Hugging Face},
url={https://huggingface.co/Huggingm1r@n/hebrew-intent-classifier}
}
This model is released under the Apache 2.0 License.