Permalink
Browse files

Merge pull request #20 from adamb0mb/master

Updated README
  • Loading branch information...
2 parents 8a2c8d4 + 1a7d862 commit b2975125f1d990df054e13385819697574c29ea9 @chrisumbel chrisumbel committed Mar 10, 2012
Showing with 11 additions and 1 deletion.
  1. +11 −1 README.md
View
@@ -103,7 +103,17 @@ outputs "buy"
console.log(classifier.classify('i am long copper'));
- classifier = new natural.BayesClassifier();
+you have access to the set of matched classes and the associated value from the classifier.
+
+outputs:
+
+ [ { label: 'sell', value: 0.39999999999999997 },
+ { label: 'buy', value: 0.19999999999999998 } ]
+
+from this:
+
+ console.log(classifier.getClassifications('i am long copper'));
+
the classifier can also be trained on and classify arrays of tokens, strings, or
any mixture. arrays let you use entirely custom data with your own

0 comments on commit b297512

Please sign in to comment.