From d94863e6c5042c50a48859a793924f0a60e5739e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mert=20Kahyao=C4=9Flu?= Date: Tue, 28 Apr 2015 23:02:50 +0300 Subject: [PATCH] remove unused PorterStemmers --- lib/natural/classifiers/bayes_classifier.js | 7 +++---- lib/natural/classifiers/logistic_regression_classifier.js | 7 +++---- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/lib/natural/classifiers/bayes_classifier.js b/lib/natural/classifiers/bayes_classifier.js index 59c04249f..e717605cf 100644 --- a/lib/natural/classifiers/bayes_classifier.js +++ b/lib/natural/classifiers/bayes_classifier.js @@ -20,10 +20,9 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -var PorterStemmer = require('../stemmers/porter_stemmer'), -util = require('util'), -Classifier = require('./classifier'), -ApparatusBayesClassifier = require('apparatus').BayesClassifier; +var util = require('util'), + Classifier = require('./classifier'), + ApparatusBayesClassifier = require('apparatus').BayesClassifier; var BayesClassifier = function(stemmer, smoothing) { var abc = new ApparatusBayesClassifier(); diff --git a/lib/natural/classifiers/logistic_regression_classifier.js b/lib/natural/classifiers/logistic_regression_classifier.js index d36f49a8a..40c9dd8dd 100644 --- a/lib/natural/classifiers/logistic_regression_classifier.js +++ b/lib/natural/classifiers/logistic_regression_classifier.js @@ -20,10 +20,9 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -var PorterStemmer = require('../stemmers/porter_stemmer'), -util = require('util'), -Classifier = require('./classifier'), -ApparatusLogisticRegressionClassifier = require('apparatus').LogisticRegressionClassifier; +var util = require('util'), + Classifier = require('./classifier'), + ApparatusLogisticRegressionClassifier = require('apparatus').LogisticRegressionClassifier; var LogisticRegressionClassifier = function(stemmer) { Classifier.call(this, new ApparatusLogisticRegressionClassifier(), stemmer);