Downloads · 30 days
145
2% of all-time downloads
azeddinShr/marbert-arabic-eou
marbert-arabic-eou is a text classification model from azeddinShr. Use it when you need a label for a piece of text. The card lists the license as apache-2.0.
Fine-tuned MARBERT model for Arabic End-of-Utterance (EOU) detection in real-time voice agents.
Downloads · 30 days
145
2% of all-time downloads
All-time downloads
6K
Public
Parameters
163M
651 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors651 MB · 99%
From the Hugging Face model README
Fine-tuned MARBERT model for Arabic End-of-Utterance (EOU) detection in real-time voice agents.
| Metric | Score |
|---|---|
| F1 Score | 0.8174 |
| Accuracy | 0.7995 |
| Precision | 0.7506 |
| Recall | 0.8971 |
| AUC-ROC | 0.8249 |
Test Set: 31,289 samples (50% complete, 50% incomplete)
from transformers import AutoTokenizer, AutoModelForSequenceClassification
import torch
model = AutoModelForSequenceClassification.from_pretrained("azeddinShr/marbert-arabic-eou")
tokenizer = AutoTokenizer.from_pretrained("azeddinShr/marbert-arabic-eou")
def predict_eou(text):
inputs = tokenizer(text, return_tensors="pt", truncation=True, max_length=128)
with torch.no_grad():
outputs = model(**inputs)
probs = torch.softmax(outputs.logits, dim=-1)
eou_prob = probs[0][1].item()
return eou_prob
# Example
text = "شكرا جزيلا على المساعدة"
prob = predict_eou(text)
is_complete = prob > 0.5
print(f"EOU Probability: {prob:.3f} - {'Complete' if is_complete else 'Incomplete'}")
@model{marbert-arabic-eou,
author = {azeddinShr},
title = {MARBERT Arabic End-of-Utterance Detection},
year = {2025},
publisher = {HuggingFace},
url = {https://huggingface.co/azeddinShr/marbert-arabic-eou}
}
Training dataset: azeddinShr/arabic-eou-sada22