Coder Social home page Coder Social logo

Comments (5)

Calvin-Xu avatar Calvin-Xu commented on May 30, 2024

I thought I found another string that could trigger this:

〝新型砕氷艦の
就航にともない―〞

but testing it one last time before submitting it, I suddenly could not reproduce the crash with either string. If this bug could not be reproduced at all on your end, I think I should close this issue.

from memento.

Calvin-Xu avatar Calvin-Xu commented on May 30, 2024

I now understand why I could not reproduce the issue last time. During the interval, I changed the system dictionary of my MeCab installation from UniDic back to IPAdic in my mecabrc. The crash only happens when UniDic is used.

Since Memento comes bundled with / depends on IPAdic by default ("with a system dictionary like ipadic on Linux and OS X"), I think this only affects users who already use their local MeCab with UniDic (or possibly other dictionaries).

On another note, I had thought about proposing switching the bundled dictionary to UniDic (and tried the changes in a fork), since it is the actively maintained dictionary. But it does come at the cost of larger bundle sizes, one data file that exceeds GitHub's 100MB limit (UniDic v2.1.2), and that no mecab-unidic is currently available on AUR.

from memento.

ripose-jp avatar ripose-jp commented on May 30, 2024

Not that it's ideal, but I'm only aware of Memento working with ipadic and NAIST-jdic. I believe way way back I tested out UniDic when choosing a dictionary to bundle with the Windows version and decided against UniDic because it was way too big to upload to GitHub without LFS and it caused crashes because it doesn't follow the exact same format as ipadic.

From my understanding, passing a -O argument to MeCab when initializing it might be able to fix it, but I couldn't find any documentation on this option, so I just didn't bother.

MeCab dictionaries shouldn't be user changable in 99% of cases, so this is a bit of a low priority bug.

from memento.

Calvin-Xu avatar Calvin-Xu commented on May 30, 2024

Thanks. I suppose it might be a good idea to close this issue for now. But perhaps we should note somewhere that Memento might crash with dictionaries other than ipadic and NAIST-jdic (possibly in the build section?) since currently the documentation doesn’t really advise against it.

from memento.

ripose-jp avatar ripose-jp commented on May 30, 2024

I've clarified the language in the README under the Dependencies section.

from memento.

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.