A small, no dependencies, Naive Bayes Text Classifier for JavaScript
Fixes an issue where the published npm package did not match the source code. Please see the release notes for 3.0.0.
constructor
or __proto__
.This release requires a major version release because the changes are backward incompatible with earlier versions. If you are using the import
feature, your model will need to be retrained otherwise classification of text with diacritics may fail. Additionally, any labels that clash with existing object properties will not longer be accepted when they may have been earlier.
Added the ability to change the default stop words used by WhichX so that it can be used with more languages without forking.
Fixed a bug where classify would return the default value when all the words were against a single label.
Fix bug where node import failed.
Security patch upgrades of development dependencies.
The first finished product of Whichpet, ready for use as an external library.
It includes the whichpet.js and the API described in the README.md, as well as a working example of using the whichpet.js in the form of a single html page and a .json file that includes the initial data set.