natural 6.10.4 → 6.10.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -43,12 +43,12 @@ class BayesClassifier extends Classifier {
43
43
  return classifier
44
44
  }
45
45
 
46
- load (filename, stemmer, callback) {
46
+ static load (filename, stemmer, callback) {
47
47
  Classifier.load(filename, function (err, classifier) {
48
48
  if (err) {
49
49
  return callback(err)
50
50
  } else {
51
- callback(err, this.restore(classifier, stemmer))
51
+ callback(err, BayesClassifier.restore(classifier, stemmer))
52
52
  }
53
53
  })
54
54
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "natural",
3
3
  "description": "General natural language (tokenizing, stemming (English, Russian, Spanish), part-of-speech tagging, sentiment analysis, classification, inflection, phonetics, tfidf, WordNet, jaro-winkler, Levenshtein distance, Dice's Coefficient) facilities for node.",
4
- "version": "6.10.4",
4
+ "version": "6.10.5",
5
5
  "homepage": "https://github.com/NaturalNode/natural",
6
6
  "repository": {
7
7
  "type": "git",