Giter Site home page Giter Site logo

Comments (3)

polm avatar polm commented on June 29, 2024

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.

polm avatar polm commented on June 29, 2024

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.

polm avatar polm commented on June 29, 2024

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.