kuroshiro-analyzer-kuromoji
Package | kuroshiro-analyzer-kuromoji | |
Description | Kuromoji morphological analyzer for kuroshiro. | |
Compatibility | Node | ✓ (>=6) |
Browser | ✓ |
Install
$ npm install kuroshiro-analyzer-kuromoji
For legacy frontend workflows, you could include dist/kuroshiro-analyzer-kuromoji.min.js
in your page. (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.
; const analyzer = ; await kuroshiro;
Initialization Parameters
Example:
const analyzer = dictPath: "url/to/dictionary_files";
dictPath
: Optional Path of the dictionary files