Views
No views yet
pipeline API with the following Python code:1from transformers import pipeline
2
3# Load the emotion classification pipeline
4# Duygu ve durum analizi pipeline'ını yükle
5classifier = pipeline(
6 "text-classification",
7 model="omercakar123/distilbert-base-turkish-emotion-analysis"
8)
9
10# Test sentences representing different emotional states
11# Farklı duygu durumlarını temsil eden örnek cümleler
12texts = [
13 "Bugün ödevleri yetiştiremeyeceğim diye çok korkuyorum, üzerimde acayip bir baskı var.", # Stresli
14 "Harika bir gün! Bu projeyi tamamlamak için inanılmaz bir enerji hissediyorum içimde.", # Motive
15 "Yarınki toplantı saat ikiye ertelenmiş, bilginiz olsun.", # Nötr
16]
17
18# Run prediction / Tahminleri çalıştır
19results = classifier(texts)
20
21for text, result in zip(texts, results):
22 print(f"Metin: {text}")
23 print(f"Durum (Label): {result['label']} | Güven Skoru: {result['score']:.4f}\n")
24
25Training Details / Eğitim Detayları
26Training Data / Eğitim Verisi
27The model was fine-tuned on a custom, curated Turkish dataset specifically labeled for stress levels, motivational status, and neutral daily assistant dialogues.
28
29Model; stres seviyeleri, motivasyon durumları ve günlük nötr asistan diyaloglarını içeren, özel olarak etiketlenmiş yerel bir Türkçe veri seti üzerinde eğitilmiştir.
30
31Model Architecture / Mimari
32Built on DistilBERT, offering a lightweight, fast, and production-ready alternative to standard BERT models while retaining high classification accuracy.
33
34DistilBERT mimarisi sayesinde, standart BERT modellerine göre çok daha hafif, hızlı ve üretim (production) ortamlarına uygun bir yapı sunarken yüksek başarım oranını korur.
35
36Model Card Contact / İletişim
37Developed as a specialized NLP module for personalized assistant ecosystems. For questions and contributions, feel free to reach out via Hugging Face.