Code Monkey home page Code Monkey logo

Comments (5)

csukuangfj avatar csukuangfj commented on September 28, 2024

@danpovey

dense_fsas = k2fsa.dense_fsas(loglikes)

Are you implementing DenseFsaVec? How is a DenseFsaVec constructed from loglikes?

from k2.

danpovey avatar danpovey commented on September 28, 2024

Look in fsa.h. It is just a struct. Needs a constructor, that's all.

from k2.

danpovey avatar danpovey commented on September 28, 2024

Note, something would need to be done in Python in general, when constructing it, to add the - infinitys in the right place. (This needs to be done at the Python level, using the base toolkit, so that autograd will work).
There are 2 cases for construction: regular and irregular. In the irregular case, please note that Lhotse keeps track of the supervision start/end times separately from the features start/end times, so even if the features have all the same length the supervisions may not. We probably shouldn't interface directly with lhotse but should give it some reasonably usable interface. In general, each sequence (i.e. at the output of the nnet, a sequence of loglikelihoods) will be associated with zero or more supervision objects, possibly overlapping in time.

from k2.

csukuangfj avatar csukuangfj commented on September 28, 2024

Look in fsa.h. It is just a struct. Needs a constructor, that's all.

DenseFsaVec contains only two members: RaggedShape and Array2<float>.
Is it equivalent to the emssion graph in the Figure 2(d) of this paper?


lattices = k2fsa.pruned_compose(dense_fsas, decoding_graph)

Since dense_fsas contains ragged shape instead of FSAs, do we construct the FSAs dynamically during
intersection?

from k2.

danpovey avatar danpovey commented on September 28, 2024

from k2.

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.