andreekeberg/ml-classify-text-js
Machine learning based text classification in JavaScript using n-grams and cosine similarity
This tool helps you automatically sort short pieces of text into categories, such as "positive" or "negative." You provide examples of text already labeled with their correct categories, and the tool learns from them. Then, when you give it new, unlabeled text, it tells you which category (or categories) it most likely belongs to, along with a confidence score. It's ideal for anyone who needs to quickly tag or route large volumes of short text.
135 stars. No commits in the last 6 months. Available on npm.
Use this if you need to automatically categorize short texts like customer reviews, social media posts, or support tickets based on predefined labels.
Not ideal if you need to classify very long documents or require highly complex, nuanced understanding beyond simple category assignment.
Stars
135
Forks
11
Language
JavaScript
License
MIT
Category
Last pushed
Apr 21, 2024
Commits (30d)
0
Dependencies
1
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/nlp/andreekeberg/ml-classify-text-js"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.