Intel/polite-guard
text-classification
1. Interactive 4-Class Politeness & Tone Meter
onnx/model_quantized.onnx
(110,300,605 B, Apache-2.0) via shared Transformers.js 3.7.5 in a dedicated
Web Worker with { top_k: null } so all four class probabilities return live without
sending your drafts or logs to any server.
Select a curated workplace/support/PR preset, edit the message below, or upload a local .txt / .csv file:
4-Class Probability Distribution
Composite Politeness Index (0–100)
Weighted expectation over live softmax probabilities: 100×P(polite) + 68×P(somewhat polite) + 42×P(neutral) + 0×P(impolite).
2. Sentence-by-Sentence Tone Breakdown
Long emails often mix a polite greeting with a blunt critique. Polite Guard classifies each sentence individually in a single off-main-thread batch so hot spots stand out immediately.
| # | Sentence | Dominant Tier | Confidence | Index | P(impolite) |
|---|---|---|---|---|---|
| Run a tone check above to inspect sentence-level scores. | |||||
3. How Intel Polite Guard Works & Source Code
Fine-tuned from google-bert/bert-base-uncased on the Intel Polite Guard dataset using
Intel Gaudi accelerators (92% test accuracy and F1), then exported to INT8 quantized ONNX
(onnx/model_quantized.onnx, 110.30 MB) for client-side WASM execution.