lxyuan/distilbert-base-multilingual-cased-sentiments-student
Xenova/distilbert-base-multilingual-cased-sentiments-student
text-classification
1. Live Multilingual Cross-Script Sentiment Desk
Pick a cross-script sample (EN / ES / FR / DE / JA / ZH / AR / HI), drop or upload a file,
paste (Ctrl/Cmd+V), or type in any of 104 mBERT languages:
.txt, .md, .csv, or .json file here, or press
Ctrl/Cmd+V anywhere outside editable fields. Inference runs locally in a Web Worker.
3-Class Multilingual Probability Distribution
See Inside · mBERT Cased WordPiece Breakdown
Inspect how the 119,547-vocab cased tokenizer splits Latin accents, CJK characters, Arabic, or Devanagari.
2. Why Distilled Multilingual Sentiment Matters
The teacher MoritzLaurer/mDeBERTa-v3-base-mnli-xnli is powerful across languages but requires
multiple NLI passes per label. Distilling it into a 6-layer DistilBERT Multilingual Cased
student compresses 104-language sentiment into a single text-classification forward pass
(135.95 MB q8 WASM) suitable for global feedback triage, browser extensions, and offline apps.
import { pipeline } from "https://cdn.jsdelivr.net/npm/@huggingface/transformers@3.7.5";
const classifier = await pipeline(
"text-classification",
"Xenova/distilbert-base-multilingual-cased-sentiments-student",
{ device: "wasm", dtype: "q8" }
);
const scores = await classifier("私はこの映画が大好きで、何度も見ます!", { top_k: 3 });
Show the code · worker.js — classify() (135.95 MB q8 WASM worker)
Show the code · multiling-sentiment-core.mjs — normalizeScores()
3. Model Card & References
- Upstream model card: lxyuan/distilbert-base-multilingual-cased-sentiments-student (Apache-2.0)
- ONNX build for Transformers.js: Xenova/distilbert-base-multilingual-cased-sentiments-student
- Student backbone: distilbert-base-multilingual-cased · Teacher: MoritzLaurer/mDeBERTa-v3-base-mnli-xnli