Views
No views yet
fyaronskiy/deberta-v1-base-russian-go-emotions for browser-side inference via Transformers.js.1import { pipeline } from "@huggingface/transformers";
2
3const classify = await pipeline(
4 "text-classification",
5 "KonstantinSerg/deberta-v1-base-russian-go-emotions-ONNX",
6 { quantized: true, top_k: null }, // top_k=null → return all 28 scores
7);
8
9const result = await classify("Я в полном восторге, наконец-то у меня получилось!");
10// → [{ label: "excitement", score: 0.78 }, { label: "joy", score: 0.52 }, ...]| Metric | Score |
|---|---|
| Recall@1 (exact 28-class label) | 97% (34/35) |
| Recall@3 | 97% |
| 10-class avatar match (mapped via GoEmotions → avatar emotions) | 100% |
0 admiration 1 amusement 2 anger 3 annoyance
4 approval 5 caring 6 confusion 7 curiosity
8 desire 9 disappointment 10 disapproval 11 disgust
12 embarrassment 13 excitement 14 fear 15 gratitude
16 grief 17 joy 18 love 19 nervousness
20 optimism 21 pride 22 realization 23 relief
24 remorse 25 sadness 26 surprise 27 neutralonnx/model_quantized.onnx (120 MB) — INT8-quantized weights, the one to loadtokenizer.json (5 MB) — ByteLevel BPE tokenizer (RoBERTa/deBERTa-v1 style)config.json — model config with id2labelmerges.txt, vocab.json — tokenizer support filesfyaronskiy/deberta-v1-base-russian-go-emotions
https://huggingface.co/fyaronskiy/deberta-v1-base-russian-go-emotions