kuroshiro-analyzer-kuromoji
kuroshiro-analyzer-kuromoji copied to clipboard
kuroshiro work on home page but doesnt work on another page.
var kuroshiro = new Kuroshiro();
kuroshiro.init(new KuromojiAnalyzer())
.then(function () {
return kuroshiro.convert("感じ取れたら手を繋ごう、重なるのは人生のライン and レミリア最高!", { to: "hiragana" });
})
.then(function(result){
console.log(result);
})
this code is working on the homepage . i put the kuroshiro.min.js and kuroshiro-analyzer-kuromoji.min.js on head like this
i copied these two file from node_modules and paste it outside on a folder called distfile.
the code above seems tow work only on one page. and the other page i get the error 404 not found. i even copied the dict folder from the kuromoji and paste it outside like this as some people mention on other issues. but it doesnt seem to work in my case. kuroshiro.init(new KuromojiAnalyzer({ dictPath: "dict/" }))