azu / kuromojin Goto Github PK
View Code? Open in Web Editor NEWProvide a high-level wrapper for kuromoji.js. Cache/Promise API
Home Page: https://kuromojin.netlify.app/
License: MIT License
Provide a high-level wrapper for kuromoji.js. Cache/Promise API
Home Page: https://kuromojin.netlify.app/
License: MIT License
It makes fast on large file parsing.
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" to be "https://myapp.com/cdn.example.com/dict"and getTokenizer cannot find the dict files.
From textlint-ja/textlint-rule-max-ten#16 (comment)
Currently, getToknizer
just return kuromoji.js object.
Instead of it, we want to wrap the tokenize
and tokenizeSentence
with LRU cache.
cc @k-tahiro
kuromoji.js 0.1.2 has a breaking change.
We will update [email protected] → 0.12 as major update kuromojin@3.
After that, we need to update textlint rules that depended on kuromoji@2.
Some rules are broken and we need to fix it!
If you want to help us, please comments!
アップデートのPRを手伝ってくれる人は、どれをやるとかのコメントお願いします。
📝 azu/migrate-travis-ci-to-github-actions: Migrate Travis CI to GitHub Actions. Node.js CI settingsを使ってTravis CI → GitHub Actionsもあわせてやるかも。
壊れたルールの例。
https://gist.github.com/azu/8f4435141a5eefe9dcce41a3652ede0b
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.