@inkdropapp/tiny-segmenter
TypeScript icon, indicating that this package has built-in type declarations

0.2.2 • Public • Published

tiny-segmenter

Mirror of TinySegmenter, the super compact Japanese tokenizer in Javascript.

For publishing it as an npm package.

Install

npm i tiny-segmenter --save

Usage

// sample code from http://chasen.org/~taku/software/TinySegmenter/
var segmenter = new TinySegmenter(); // インスタンス生成
var segs = segmenter.segment("私の名前は中野です"); // 単語の配列が返る
console.log(segs.join(" | ")); // 表示

Package Sidebar

Install

npm i @inkdropapp/tiny-segmenter

Weekly Downloads

3

Version

0.2.2

License

SEE LICENSE IN http://chasen.org/~taku/software/TinySegmenter/LICENCE.txt

Unpacked Size

44.6 kB

Total Files

6

Last publish

Collaborators

  • craftzdog