Open azu opened 2 years ago
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.
getToknizer
tokenize
tokenizeSentence
cc @k-tahiro
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 thetokenize
andtokenizeSentence
with LRU cache.cc @k-tahiro