Whichx Versions Save

A small, no dependencies, Naive Bayes Text Classifier for JavaScript

v3.0.1

2 years ago

Fixes an issue where the published npm package did not match the source code. Please see the release notes for 3.0.0.

v3.0.0

2 years ago

Deprecated - Please use 3.0.1 or later.

  • Added more fine grained error messages for validating labels and description.
  • Added validation to stop adding of labels that may overwrite standard object properties such as constructor or __proto__.
  • Added normalization of descriptions and diacritic processing.
  • JSDoc and typescript type information have been added to aid development with whichx.

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.

v2.2.0

2 years ago

Added the ability to change the default stop words used by WhichX so that it can be used with more languages without forking.

v2.1.3

3 years ago

Fixed a bug where classify would return the default value when all the words were against a single label.

2.1.2

3 years ago

Fix bug where node import failed.

v2.1.1

4 years ago

Security patch upgrades of development dependencies.

v2.1.0

5 years ago
  • Add export function to save a model of what the classifier has already learned.
  • Add an import function for importing a previously saved model to a new WhichX object.

v2.0.0

5 years ago
  • Rename project to the more general title 'WhichX'.
  • Update developer dependencies with security vulnerabilities.

v1.0.1

5 years ago
  • Added unit tests.
  • Added linting.
  • Published to NPM.
  • Lowered m estimate to avoid avoid over-reliance on high probability labels.
  • Backwards compatible, in line with semantic versioning.

1.0.0

7 years ago

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.