winvoker/turkish-sentiment-analysis-dataset
Viewer • Updated • 490k • 1.25k • 51
Run ayse-solmaz/turkish-sentiment-electra-small on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Use HF Jobs to fine-tune https://huggingface.co/ayse-solmaz/turkish-sentiment-electra-small. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Use HF Jobs to run batch inference with https://huggingface.co/ayse-solmaz/turkish-sentiment-electra-small on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
How to use ayse-solmaz/turkish-sentiment-electra-small with Transformers.js:
// npm i @huggingface/transformers
import { pipeline } from '@huggingface/transformers';
// Allocate pipeline
const pipe = await pipeline('text-classification', 'ayse-solmaz/turkish-sentiment-electra-small');Türkçe metinleri Positive / Notr / Negative olarak sınıflandıran küçük (13.7M parametre) bir model. Tarayıcıda Transformers.js ile çalışacak şekilde ONNX formatında da yayınlanmıştır (onnx/model.onnx fp32 55 MB, onnx/model_quantized.onnx int8 14 MB).
Canlı demo: https://ayse-solmaz.github.io/turkish-sentiment-analysis/
Kod: https://github.com/ayse-solmaz/turkish-sentiment-analysis
import { pipeline } from '@huggingface/transformers';
const classifier = await pipeline('text-classification', 'ayse-solmaz/turkish-sentiment-electra-small', { dtype: 'q8' });
await classifier('Kargo çok hızlı geldi, ürün harika!');
dbmdz/electra-small-turkish-cased-discriminatorwinvoker/turkish-sentiment-analysis-dataset; noktalama önündeki boşluklar temizlendi, tekrarlar ve çelişkili etiketler çıkarıldı, sınıf başına 10.000 örnek (dengeli)log(gerçek oran / 1/3) eklendi (son katmanın bias'ına gömülü).| v1 | v2 | |
|---|---|---|
| Macro F1 | 0.893 | 0.908 |
| Macro F1 — tüm ilk harfler küçük | 0.695 | 0.908 |
| Macro F1 — tüm ilk harfler büyük | 0.877 | 0.908 |
| Negative precision | 0.645 | 0.781 |
v2 büyük/küçük harften etkilenmiyor.