GithubHelp home page GithubHelp logo

Support weights for commands? about breathe HOT 5 CLOSED

mrob95 avatar mrob95 commented on September 25, 2024
Support weights for commands?

from breathe.

Comments (5)

mrob95 avatar mrob95 commented on September 25, 2024

Hmm, I'm not sure this would be easy to implement on my side. As far as I can see from the code Kaldi implements weight as a parameter on grammars and rules. For CCR commands Breathe doesn't really deal in rules, instead every command becomes an (Compound) element which is then wrapped in an Alternative and a Repetition to make a single rule.

If if it was going to be implemented in breathe the internals would probably need to be re-factored so that each call to add_commands creates its own rule, and then CCR is built out of RuleRefs to those. Not necessarily a huge change, though I have somewhat limited time at the moment.

@daanzu may have more thoughts or a smarter way of going about it.

from breathe.

daanzu avatar daanzu commented on September 25, 2024

I think Elements should support weights. If they don't currently, it is an oversight on my part, and I would intend to fix it. I'll try to take a look. Feel free to ping me.

from breathe.

mrob95 avatar mrob95 commented on September 25, 2024

You're right, it does look from the code like weights can be set on elements. I'll try to make a first pass at implementing something this weekend.

from breathe.

daanzu avatar daanzu commented on September 25, 2024

Cool, let me know of anything.

from breathe.

mrob95 avatar mrob95 commented on September 25, 2024

Okay @droundy #6 adds basic support for weights on command groups. Please update, test and let me know if it seems to be working as I only have kaldi set up on work VMs at the moment 🙃

from breathe.

Related Issues (5)

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.