Mahmoud252002 commited on
Commit
193f60b
·
verified ·
1 Parent(s): 7e3b696

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +37 -0
README.md ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language: ar
3
+ license: apache-2.0
4
+ tags:
5
+ - text-classification
6
+ - arabic
7
+ - arabert
8
+ pipeline_tag: text-classification
9
+ ---
10
+
11
+ # 7oudaModel - AraBERT Call Classifier
12
+
13
+ موديل مبني على [aubmindlab/bert-base-arabertv02](https://huggingface.co/aubmindlab/bert-base-arabertv02)
14
+ اتعمله Fine-tuning لتصنيف إفادات المكالمات إلى **ناجحة** أو **غير ناجحة**.
15
+
16
+ ## الاستخدام
17
+
18
+ ```python
19
+ from transformers import AutoTokenizer, AutoModelForSequenceClassification
20
+ import torch
21
+
22
+ tokenizer = AutoTokenizer.from_pretrained("Mahmoud252002/7oudaModel")
23
+ model = AutoModelForSequenceClassification.from_pretrained("Mahmoud252002/7oudaModel")
24
+
25
+ text = "ضع نص الإفادة هنا"
26
+ inputs = tokenizer(text, return_tensors="pt", truncation=True, max_length=256)
27
+ with torch.no_grad():
28
+ logits = model(**inputs).logits
29
+ pred = torch.argmax(logits, dim=1).item()
30
+ print("ناجحة" if pred == 1 else "غير ناجحة")
31
+ ```
32
+
33
+ ## تفاصيل التدريب
34
+
35
+ - الموديل الأساسي: `aubmindlab/bert-base-arabertv02`
36
+ - المهمة: تصنيف ثنائي (Binary Classification)
37
+ - عدد الفئات: 2 (ناجحة / غير ناجحة)