Package Exports
- tiny-segmenter
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (tiny-segmenter) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
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(" | ")); // 表示