Package | kuroshiro-analyzer-yahoo-webapi | |
Description | Yahoo WebAPI morphological analyzer for kuroshiro. | |
Compatibility | Node | ✓ (>=6) |
Browser | ✗ |
This plugin will no longer be compatible with browser since Yahoo YQL service was retired at Jan 3, 2019. Please update to the latest version of kuroshiro-analyzer-yahoo-webapi.
$ npm install kuroshiro-analyzer-yahoo-webapi
This analyzer utilizes Yahoo WebAPI of morphological analysis service.
Before you start, you should register your application in Yahoo to get a APP ID. Please visit the link above for more information.
You need to specify your Yahoo application ID when initializing the analyzer.
import YahooWebAnalyzer from "kuroshiro-analyzer-yahoo-webapi";
const analyzer = new YahooWebAnalyzer({
appId: "YOUR_YAHOO_APP_ID",
});
await kuroshiro.init(analyzer);
appId
: Your Yahoo application IDtimeout
: Optional Request timeout in millisecond
This analyzer might not give optimized converted result when converting kanji to romaji with kuroshiro since Yahoo Web API lacks information of pronunciation in analysis result.