Skip to content

Commit

Permalink
Fix test in node 0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
alexlangberg committed Jun 17, 2015
1 parent d5e6580 commit 2e194b1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/natural/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ exports.AggressiveTokenizerPl = require('./tokenizers/aggressive_tokenizer_pl');
exports.AggressiveTokenizerPt = require('./tokenizers/aggressive_tokenizer_pt');
exports.AggressiveTokenizerNo = require('./tokenizers/aggressive_tokenizer_no');
exports.AggressiveTokenizer = require('./tokenizers/aggressive_tokenizer');
exports.CaseTokenizer = require('./tokenizers/tokenizer_case');
exports.RegexpTokenizer = require('./tokenizers/regexp_tokenizer').RegexpTokenizer;
exports.WordTokenizer = require('./tokenizers/regexp_tokenizer').WordTokenizer;
exports.WordPunctTokenizer = require('./tokenizers/regexp_tokenizer').WordPunctTokenizer;
exports.CaseTokenizer = require('./tokenizers/tokenizer_case').CaseTokenizer;
exports.TreebankWordTokenizer = require('./tokenizers/treebank_word_tokenizer');
exports.TokenizerJa = require('./tokenizers/tokenizer_ja');
exports.BayesClassifier = require('./classifiers/bayes_classifier');
Expand Down
3 changes: 2 additions & 1 deletion lib/natural/tokenizers/tokenizer_case.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
var Tokenizer = require('./tokenizer'),
util = require('util'),
CaseTokenizer = function() {
Tokenizer.call(this);
};

util.inherits(CaseTokenizer, Tokenizer);
Expand Down Expand Up @@ -54,4 +55,4 @@ CaseTokenizer.prototype.tokenize = function(text, preserveApostrophe) {
return this.trim(result.replace(/\s+/g, ' ').split(' '));
};

exports.CaseTokenizer = CaseTokenizer;
module.exports = CaseTokenizer;

0 comments on commit 2e194b1

Please sign in to comment.