@inkdropapp/tiny-segmenter
v0.2.2
Published
Super compact Japanese tokenizer in Javascript. http://chasen.org/~taku/software/TinySegmenter/
Downloads
3
Maintainers
Readme
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(" | ")); // 表示