Downloads · 30 days
8
57% of all-time downloads
khaledb12s/Arabic_Sentiment_Analysis
Arabic_Sentiment_Analysis is a machine learning model from khaledb12s. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
نموذج ذكاء اصطناعي لتحليل المشاعر في النصوص العربية (إيجابي / سلبي).
Downloads · 30 days
8
57% of all-time downloads
All-time downloads
14
Public
Parameters
111M
885 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors442 MB · 100%
From the Hugging Face model README
نموذج ذكاء اصطناعي لتحليل المشاعر في النصوص العربية (إيجابي / سلبي).
تفاصيل النموذج
khaledb12s/Arabic_Sentiment_Analysis_v2طريقة الاستخدام
from transformers import AutoTokenizer, AutoModelForSequenceClassification
import torch
model_name = "khaledb12s/Arabic_Sentiment_Analysis_v2"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForSequenceClassification.from_pretrained(model_name)
text = "مرحبا"
inputs = tokenizer(text, return_tensors="pt", truncation=True, padding=True)
outputs = model(**inputs)
pred = torch.argmax(outputs.logits, dim=1).item()
label = "positive" if pred == 1 else "negative"
print(label)
ملحوظه
النموذج تم تدريبه على 2000 بيانات نصية وهذا يعني انه دقته ليست مرتفعة
يحتاج تدريب زيادة وهو مفتوح المصدر واي شخص قادر يفتحه ويدرب عليه