Skip to content

Commit

Permalink
Merge pull request #19 from vunb/v1
Browse files Browse the repository at this point in the history
update readme
  • Loading branch information
vunb authored Nov 6, 2017
2 parents 47f6fa8 + f188143 commit 38df9c9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
Vietnamese NLP Toolkit for Node

[![npm version](https://img.shields.io/npm/v/vntk.svg?style=flat)](https://www.npmjs.com/package/vntk)
[![Travis](https://travis-ci.org/Vunb/vntk.svg?branch=master)](https://travis-ci.org/Vunb/vntk)
[![npm downloads](https://img.shields.io/npm/dm/vntk.svg)](https://www.npmjs.com/package/vntk)
[![Travis](https://travis-ci.org/vunb/vntk.svg?branch=master)](https://travis-ci.org/vunb/vntk)
[![Appveyor](https://ci.appveyor.com/api/projects/status/3xej24k2f9qlm2v8/branch/master?svg=true)](https://ci.appveyor.com/project/Vunb/vntk/branch/master)


Expand Down
6 changes: 3 additions & 3 deletions bin/vntk.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,17 +61,17 @@ program
return;
}

var ws = vntk.ws();
var ws = vntk.word_sent;

if (!options.file) {
text.forEach(function (e) {
console.log(e);
var seg = ws.segment(e);
var seg = ws.tag(e, 'text');
console.log("Output:", seg);
}, this);
} else {
text.forEach(function (e) {
var seg = ws.segmentF(e);
var seg = ws.tag(e);
console.log(seg);
}, this);
}
Expand Down

0 comments on commit 38df9c9

Please sign in to comment.