kuromojin icon indicating copy to clipboard operation
kuromojin copied to clipboard

Provide a high-level wrapper for kuromoji.js. Cache/Promise API

Results 2 kuromojin issues
Sort by recently updated
recently updated
newest added

From https://github.com/textlint-ja/textlint-rule-max-ten/pull/16#issuecomment-991891587 Currently, `getToknizer` just return kuromoji.js object. Instead of it, we want to wrap the `tokenize` and `tokenizeSentence` with LRU cache. cc @k-tahiro

Status: Proposal

https://nodejs.org/api/path.html#path_path_join_paths https://github.com/takuyaa/kuromoji.js/blob/71ea8473bd119546977f22c61e4d52da28ac30a6/src/loader/DictionaryLoader.js#L51 After path.join, "https://" becomes "https:/" and causes 404 error in a browser. In my use case, I use kuromojin in a web application and this results in "https://cdn.example.com/dict"...