Downloads · 30 days
40
56% of all-time downloads
intai2070/tooka-bert-large-sentiment
tooka-bert-large-sentiment is a text classification model from intai2070. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as apache-2.0.
Downloads · 30 days
40
56% of all-time downloads
All-time downloads
71
Public
Parameters
353M
25.4 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors1.4 GB · 100%
From the Hugging Face model README
این نتایج عملکرد قوی مدل را در تحلیل احساسات فارسی نشان میدهد و اثربخشی TookaBERT-Large را در فاینتیون روی دیتاستهای خاص حوزه تأیید میکند.
pip install 'git+https://github.com/huggingface/transformers.git'
from transformers import AutoTokenizer, AutoModelForSequenceClassification, pipeline
model_name = "IRI2070/tooka-bert-large-snappfood-sentiment"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForSequenceClassification.from_pretrained(model_name)
nlp = pipeline("text-classification", model=model, tokenizer=tokenizer)
text = "غذا خیلی خوشمزه بود و سریع رسید."
print(nlp(text))
# [{'label': 'HAPPY', 'score': 0.95}]
این پروژه بخشی از فعالیتهای آموزشی و پژوهشی در آکادمی همراه اول است و با هدف ارتقای دانش در حوزهی NLP و یادگیری عمیق منتشر شده است.
</div>