1.0.1 • Published 7 years ago

smallclassifier v1.0.1

Weekly downloads
2
License
MIT
Repository
-
Last release
7 years ago

Small Classifier

Small classifier is a lightweight and easy to use text classifier.

Training

var Classifier = require('Smallclassifier');
var classifier = new Classifier();
classifier.train('Hello there', 'greeting');
classifier.train('SmallClassifier is awesome!', 'complement');

Use

console.log(classifier.classify('hello there SmallClassifier')); // greeting
console.log(classifier('You are awesome!')); //{"complement": 0.66666666666, "greeting": 0.33333333333}