From 30081731a61228108f943faa65f8bafb3ccb1787 Mon Sep 17 00:00:00 2001 From: Vunb Date: Mon, 6 Nov 2017 18:11:40 +0700 Subject: [PATCH 1/2] fix travis build status link --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 5e62ab8..6f97713 100644 --- a/README.md +++ b/README.md @@ -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) From f1881438a07867cdac19a6dc2a2fe14e41fa091b Mon Sep 17 00:00:00 2001 From: Vunb Date: Mon, 6 Nov 2017 18:12:33 +0700 Subject: [PATCH 2/2] fix cli command tool --- bin/vntk.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/vntk.js b/bin/vntk.js index f7da3d6..6b3e2b4 100644 --- a/bin/vntk.js +++ b/bin/vntk.js @@ -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); }