bayes
bayes copied to clipboard
Naive-Bayes Classifier for node.js
Adding the options to receive 'undefined' from 'categorize' in case all of the tokens dose not match anything
I know that Chinese does not have the same density of spaces as English and most languages; a Chinese character is more analogous to an English word than an English...
Otherwise you cannot index documents with the word "constructor" or create categories with that name. Fixes #14.
it seems the classifier just works on the passed in token (words unless you write your own tokenizer) how could I best use this with multidimensional tokens such as word...
The tokenizer function was not saved/loaded in toJson() and fromJson()
It is difficult to segment a text into tokens in some languages(such as Chinese), there are many hard works need to do to implement better tokenizer. For this reason, sometimes...
In one of the examples you say `is a news article about technology, politics, or sports ?` What if it's an article about robots playing football? In this case I...
Part of the `categorize` method moved into separate function.
Would it be too much trouble to make a public method that clears all the `learn`ed phrases?
How do I do load the custom JSON state and use a custom tokenizer?