Skip to content

birchill/tiny-segmenter

Repository files navigation

tiny-segmenter

TinySegmenter converted to TypeScript (and slightly more modern JS) and packaged as an npm module.

Installation

npm install @birchill/tiny-segmenter

Usage

import { TinySegmenter } from '@birchill/tiny-segmenter';

const segmenter = new TinySegmenter();
const segments = segmenter.segment('私の名前は中野です');
// segments = ['私', 'の', '名前', 'は', '中野', 'です']

About

Lightweight Japanese word segmenter

Resources

Stars

Watchers

Forks

Packages

No packages published