AfnanSD commited on
Commit
f6f67d9
·
verified ·
1 Parent(s): 1e4b33e

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +22 -0
README.md ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Arabic EOU Detection Model
2
+
3
+ Fine-tuned `aubmindlab/bert-base-arabertv2` for binary end-of-utterance detection
4
+ in Saudi Arabic conversational speech.
5
+
6
+ ## Labels
7
+ - 0: Not end of utterance
8
+ - 1: End of utterance
9
+
10
+ ## Intended Use
11
+ Real-time conversational agents and turn-taking systems.
12
+
13
+ ## Example
14
+ ```python
15
+ from transformers import AutoTokenizer, AutoModelForSequenceClassification
16
+ import torch
17
+
18
+ tokenizer = AutoTokenizer.from_pretrained("YOUR_USERNAME/arabic-eou-bertv2")
19
+ model = AutoModelForSequenceClassification.from_pretrained("YOUR_USERNAME/arabic-eou-bertv2")
20
+
21
+ inputs = tokenizer("تمام خلاص", return_tensors="pt")
22
+ prob = torch.softmax(model(**inputs).logits, dim=-1)[0,1].item()