Downloads · 30 days
0
mahmoudsaalama/arabic-eou-camelbert
arabic-eou-camelbert is a machine learning model from mahmoudsaalama. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
Fine-tuned CAMeLBERT model for detecting end-of-utterance in Arabic conversations, with emphasis on Saudi dialect.
Downloads · 30 days
0
Access
Public
Updated Dec 11, 2025
Repo size
874 MB
Likes
0
Public
Click a slice to open those files.
.bin437 MB · 100%
From the Hugging Face model README
Fine-tuned CAMeLBERT model for detecting end-of-utterance in Arabic conversations, with emphasis on Saudi dialect.
This model is designed to detect when a speaker has finished their conversational turn in Arabic dialogue. It's particularly optimized for Saudi dialect patterns and real-time applications.
pip install torch transformers
from transformers import AutoTokenizer, AutoModel
import torch
# Load model and tokenizer
model_name = "mahmoudsaalama/arabic-eou-camelbert"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModel.from_pretrained(model_name)
# Prepare input
text = "السلام عليكم ورحمة الله"
inputs = tokenizer(text, return_tensors="pt", max_length=128, truncation=True)
# Get prediction
with torch.no_grad():
outputs = model(**inputs)
probability = torch.sigmoid(outputs.logits).item()
is_eou = probability > 0.5
print(f"EOU Probability: {probability:.4f}")
print(f"Is EOU: {is_eou}")
For easier integration, use the Arabic EOU SDK:
pip install arabic-eou-sdk
from arabic_eou_sdk import ArabicEOUDetector
detector = ArabicEOUDetector(model_name="mahmoudsaalama/arabic-eou-camelbert")
result = detector.update_transcription("السلام عليكم", is_final=True)
print(f"Is EOU: {result['is_eou']}")
print(f"Probability: {result['probability']:.4f}")
print(f"Confidence: {result['confidence']:.4f}")
| Metric | Score |
|---|---|
| Accuracy | ~90% |
| Precision | ~88% |
| Recall | ~92% |
| F1 Score | ~90% |
| ROC AUC | ~95% |
| Configuration | Latency |
|---|---|
| GPU (FP32) | ~15-20ms |
| GPU (INT8) | ~8-12ms |
| CPU (FP32) | ~60-80ms |
| CPU (INT8) | ~25-35ms |
@model{arabic_eou_camelbert_2025,
author = {Mahmoud Saalama},
title = {Arabic End-of-Utterance Detection Model},
year = {2025},
publisher = {Hugging Face},
url = {https://huggingface.co/mahmoudsaalama/arabic-eou-camelbert}
}
MIT License
For questions or feedback: