Permalink
Browse files

更改接口

  • Loading branch information...
1 parent 28a00b7 commit daf7ed0e8e61ff2f3578e049a856b69b0fdd320b @leizongmin committed Apr 2, 2015
Showing with 6 additions and 4 deletions.
  1. +5 −3 index.js
  2. +1 −1 test/test_segment.js
View
@@ -5,9 +5,11 @@
*
* @author 老雷<leizongmin@gmail.com>
*/
-
-// 分词接口
-exports.Segment = require('./lib/Segment');
+
+// 分词接口
+var Segment = require('./lib/Segment');
+module.exports = exports = Segment;
+exports.Segment = Segment;
// 词性接口
exports.POSTAG = require('./lib/POSTAG');
@@ -1,5 +1,5 @@
var assert = require('assert');
-var Segment = require('../').Segment;
+var Segment = require('../');
describe('ChsNameTokenizer', function () {

0 comments on commit daf7ed0

Please sign in to comment.