1.1.3 • Published 10 months ago

kuroshiro-analyzer-kuromoji-techtech v1.1.3

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

kuroshiro-analyzer-kuromoji

Build Status Coverage Status npm version

Install

$ npm install kuroshiro-analyzer-kuromoji

For legacy frontend workflows, you could include dist/kuroshiro-analyzer-kuromoji.min.js in your page and the exported name is KuromojiAnalyzer. (you may first build it from source with npm run build after npm install)

Usage with kuroshiro

Configure analyzer

This analyzer utilizes kuromoji.js.

You could specify the path of your dictionary files with dictPath param.

import KuromojiAnalyzer from "kuroshiro-analyzer-kuromoji";

const analyzer = new KuromojiAnalyzer();

await kuroshiro.init(analyzer);

Initialization Parameters

Example:

const analyzer = new KuromojiAnalyzer({
    dictPath: "url/to/dictionary_files"
});
  • dictPath: Optional Path of the dictionary files