GithubHelp home page GithubHelp logo

Using only kanji->kana data about kuromoji.js HOT 2 OPEN

mikob avatar mikob commented on September 26, 2024
Using only kanji->kana data

from kuromoji.js.

Comments (2)

mikob avatar mikob commented on September 26, 2024

Hmm so it seems the most critical elements for just getting the kana breakdown based on how I've understood the code thus far is the surface form, left id, right id, and cost.

        var surface_form = entry[0];
        var left_id = entry[1];
        var right_id = entry[2];
        var word_cost = entry[3];
        var feature = entry.slice(4).join(",");  // TODO Optimize

The other features (everything after the 4th element in the CSVs) seem to be only for informational output, and not needed for analysis?

from kuromoji.js.

mikob avatar mikob commented on September 26, 2024

Without the extra feature elements (part of speech, pronunciation etc.) we can shave off ~20% (20MB) from the uncompressed version. After compression this saves us about ~13% (2MB) which is quite significant.

@takuyaa do you think there are additional ways to bring down the dictionary file sizes?

Thanks again for your work on this very useful project.

from kuromoji.js.

Related Issues (20)

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.