YAML Metadata
Warning:
empty or missing yaml metadata in repo card
(https://huggingface.co/docs/hub/model-cards#model-card-metadata)
Arabic End-of-Utterance (EOU) Classifier
Overview
This repository contains a custom PyTorch model for End-of-Utterance (EOU) detection in Arabic conversational text.
The model predicts whether a given text segment represents the end of a speakerโs turn.
This is a custom architecture (not a Hugging Face AutoModel) and is intended for research and development use.
Task
Given an input text segment, the model outputs a binary prediction:
0โ The speaker is expected to continue speaking1โ The speaker has finished their turn
Model Details
- Framework: PyTorch
- Architecture: Custom
EOUClassifier - Task: Binary classification (EOU detection)
- Language: Arabic
Tokenizer
This model uses the tokenizer from:
Omartificial-Intelligence-Space/SA-BERT-V1
The tokenizer is not included in this repository and must be loaded separately.
Files
model.pyโ Model architecture (EOUClassifier)model.ptโ Trained model weightsconfig.jsonโ Model configurationREADME.mdโ This file
Loading the Model
import torch
from transformers import AutoTokenizer
from model import EOUClassifier
tokenizer = AutoTokenizer.from_pretrained(
"Omartificial-Intelligence-Space/SA-BERT-V1"
)
model = EOUClassifier()
model.load_state_dict(
torch.load("model.pt", map_location="cpu")
)
model.eval()
examples = ["ู
ูุตุฏู ู
ู ุงูู
ูุถูุน ุงูู", "ุงุชู
ูู ุชูุฏุฑ ุชุณุงุนุฏูู"]
batch = tokenizer(examples, padding=True, truncation=True, return_tensors="pt")
batch.to(device)
out = model(batch["input_ids"], batch["attention_mask"])
license
MIT
- Downloads last month
- -
Inference Providers
NEW
This model isn't deployed by any Inference Provider.
๐
Ask for provider support