Browser text categorization
Give it newline-separated short texts and editable category names; it shows each text in the model-selected category column.
Browser app after local Node/npm/Vite setupBrowser worker inference; separate model/tokenizer/ONNX artifacts downloaded on first load
Paste one item per line, name the categories and sort all the lines into visible columns in one run. This removes repeated one-item submissions and custom browser-worker code for small sorting jobs.
Source check and requirements
Source review only; software was not installed or run, and individual accessibility fit was not tested.
- Requirements
- Canonical source setup route, not an installed app or tested hosted Space. Node18/20/22+ compatible with Vite6 lockfile, npm dependencies, browser and initial model/tokenizer/ONNX downloads are required. package.json pins @huggingface/transformers3.7.1; inference runs in a browser worker by source design, with no configured inference API key. No offline, isolation, speed, accuracy, accessibility or Mac-fit claim. The fixed English model has max_position_embeddings512; no long-line chunking or explicit truncation handling is added by the app. It classifies each newline separately with multi_label=true, displays only the top label when its score exceeds0.5 and otherwise sends it to Other. Labels/scores are model outputs. Results are in temporary React state, with no file import/export or persistence; repeated Categorize appends duplicate results until Clear. Errors are not caught by the app worker, so a failed load/classification can leave the UI busy. The reviewed current GitHub source is newer than the deployed HF bundle; that bundle has a separate declaration hold.
- Platforms
- Browser app after local Node/npm/Vite setup, Browser worker inference; separate model/tokenizer/ONNX artifacts downloaded on first load
- Category
- Reading & writing
- Type
- Browser text sorting app (source setup)
- License declaration
- apache-2.0
- License source
- https://github.com/huggingface/transformers.js-examples/blob/204b0948e88cd2bdc046316e78b754359653caea/LICENSE
- Source review date
- 2026-10-18
- Setup instructions
- https://github.com/huggingface/transformers.js-examples/tree/204b0948e88cd2bdc046316e78b754359653caea/zero-shot-classification
- Original source
- https://github.com/huggingface/transformers.js-examples
- Record ID
- github:huggingface/transformers.js-examples