GithubHelp home page GithubHelp logo

Comments (9)

takuyaa avatar takuyaa commented on June 24, 2024 2

@katspaugh I released fixed version of 0.1.2! You could check it on demo site: https://takuyaa.github.io/kuromoji.js/demo/tokenize.html
Please try it.
FYI @iapyeh @jrorsini

from kuromoji.js.

katspaugh avatar katspaugh commented on June 24, 2024 1

I confirm the issue is fixed in my app, too. Many thanks! 👍

from kuromoji.js.

iapyeh avatar iapyeh commented on June 24, 2024

Excuse me, then, how to change the behavior for "研究" to be parsed as a single token? (Disable the Viterbi algorithm?)

from kuromoji.js.

jrorsini avatar jrorsini commented on June 24, 2024

Maybe if you try this it should work:
let path = tokenizer.tokenizeForSentence(txtToGloss);

from kuromoji.js.

katspaugh avatar katspaugh commented on June 24, 2024

@jrorsini nope, the same.
I've just tried it in my project https://kuromoji.fluentcards.com/ – changed tokentize to tokenizeForSentence but it's still breaking 研究 mid-word.

from kuromoji.js.

jrorsini avatar jrorsini commented on June 24, 2024

@katspaugh, Maybe you should add this file,
https://github.com/takuyaa/kuromoji.js/blob/master/build/kuromoji.js
That's the one that contains the prototype method.

from kuromoji.js.

katspaugh avatar katspaugh commented on June 24, 2024

@jrorsini I mean, tokenizeForSentence worked, it's defined. It just behaves the same way as tokenize with regard to 研究.

from kuromoji.js.

takuyaa avatar takuyaa commented on June 24, 2024

This seems to be a bug.
#25 will fix this issue.

from kuromoji.js.

katspaugh avatar katspaugh commented on June 24, 2024

Cool! I'll test it with my app and let you know if the fix helped with this issue.

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.