Instructions to use Andesprit/dictaria-question-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers.js
How to use Andesprit/dictaria-question-classifier with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('text-classification', 'Andesprit/dictaria-question-classifier');
Add int8 question classifier
Browse filesFiles changed (6)
- .gitattributes+1
- README.mdAdded+53
- labels.jsonAdded+1
- model.onnxAdded+3
- tokenizer.jsonAdded+3
- tokenizer_config.jsonAdded+23
32 unmodified lines33343532 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -text32 unmodified lines3334353632 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -texttokenizer.json filter=lfs diff=lfs merge=lfs -text
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253---license: apache-2.0base_model: sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2language: [en, es, fr, de, pt]pipeline_tag: text-classificationlibrary_name: onnxtags: [question-detection, meetings, onnx, int8, transformers.js]---
# Dictaria question classifier
Detects whether the latest chunk of live meeting speech asks something the listener should answer.Dictaria runs it on the user's device (browser or desktop app) with onnxruntime-web: no text leaves the device to be classified.
## Labels
`question`, `request`, `social`, `rhetorical`, `statement`, `fragment` (in `labels.json` order).Dictaria treats `question + request` probability >= 0.5 as "answer this".
- `question`: a real question someone else is expected to answer.- `request`: asks for information without question form ("walk me through...", "cuéntame...").- `social`: comprehension checks, tag questions, small talk, logistics, action requests.- `rhetorical`: the speaker answers it or says it for emphasis.- `statement`: asks nothing.- `fragment`: cut off mid-thought or filler only.
## Model
- Base: `paraphrase-multilingual-MiniLM-L12-v2` (Apache 2.0) with a 6-way classification head.- Fine-tuned on about 3,820 synthetic meeting-speech examples (90% training, 10% validation) in English, Spanish, French, German and Portuguese, labeled by an AI model.- Exported to ONNX and quantized to int8 per channel (`model.onnx`, 118 MB).- Input: at most 96 tokens (BOS + the last 94 tokens of the speech + EOS).
## Results
340 independently written test cases, never used for training or tuning, scored through the browser code path with the int8 model:
| Language | Accuracy ||---|---|| English | 97.5% (78/80) || Spanish | 96.3% (77/80) || French | 95.0% (57/60) || German | 96.7% (58/60) || Portuguese | 98.3% (59/60) || All | 96.8% (329/340) |
Speed: 12 to 30 ms per check in a browser worker (wasm, one thread).
## Limitations
- Judges only the text it is given; it does not know whether a question was already answered.- Trained on synthetic speech, not real transcripts; speech-recognition errors in real meetings may lower accuracy.- Only the five languages above were tested.1["question", "request", "social", "rhetorical", "statement", "fragment"]123version https://git-lfs.github.com/spec/v1oid sha256:645e73822d8b63025d092bbe851f9b66c67e46314cd55395a920b65003655915size 118318872123version https://git-lfs.github.com/spec/v1oid sha256:3a56def25aa40facc030ea8b0b87f3688e4b3c39eb8b45d5702b3a1300fe2a20size 170827341234567891011121314151617181920212223{ "backend": "tokenizers", "bos_token": "<s>", "cls_token": "<s>", "do_lower_case": true, "eos_token": "</s>", "is_local": true, "mask_token": "<mask>", "max_length": 128, "model_max_length": 512, "pad_to_multiple_of": null, "pad_token": "<pad>", "pad_token_type_id": 0, "padding_side": "right", "sep_token": "</s>", "stride": 0, "strip_accents": null, "tokenize_chinese_chars": true, "tokenizer_class": "TokenizersBackend", "truncation_side": "left", "truncation_strategy": "longest_first", "unk_token": "<unk>"}.gitattributes+1
README.mdAdded+53
labels.jsonAdded+1
model.onnxAdded+3
tokenizer.jsonAdded+3
tokenizer_config.jsonAdded+23