Comments (3)
Got this working but ran into some issues.
A big one is that while edict2 has many more entries than the SKK dict used as a base by other migemos, a lot of those entries are pretty redundant - 東京発, 東京行き, 東京着 for example. This means that the pruning step has more work to do, making things slower.
I think I'm going to put this on the backburner until someone requests it and try to find other approaches; even in the good existing migemos things are weird when your input is something short like "to" for example.
from node-migemo.
Fiddling around with building a prefix tree things were much faster than I expected but still slower than is good. However, by caching single kana (as well as clusters like きょ) conversion became much faster with a minimal increase in dictionary size (5.1MB -> 5.4MB uncompressed). There is still noticeable lag on a few combinations and particularly on deletion, so caching should be added.
from node-migemo.
Caching did the job; interactive speed feels pretty acceptable now. Load time is a bit longer than I'd like but not a big deal.
from node-migemo.
Related Issues (4)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-migemo.