kusanaji-analyzer
v1.0.0
Published
Kusamoji-based morphological analyzer adapter for kusanaji — bridges kusamoji tokenizer into kusanaji's analyzer interface
Maintainers
Readme
Kusanaji Analyzer
Kusamoji-based morphological analyzer adapter for kusanaji. Bridges the kusamoji tokenizer into kusanaji's analyzer interface.
Install
npm install kusanaji-analyzerUsage
import KusanajiAnalyzer from 'kusanaji-analyzer';
const analyzer = new KusanajiAnalyzer({ dictPath: '/path/to/dict' });
await analyzer.init();
const tokens = await analyzer.parse('東京タワー');
console.log(tokens);dictPath is required — pass the path to the directory containing the uncompressed .dat files.
License
BSL 1.1
