Git Product home page Git Product logo

Comments (3)

iiSeymour avatar iiSeymour commented on June 16, 2024

Yes, if you are not using an external language model then fast-ctc-decode can be used in place of the parlance beam search implementation. Ease of installation is a priority for this project.

from fast-ctc-decode.

shamoons avatar shamoons commented on June 16, 2024

What do the various arguments map to?

from fast-ctc-decode.

iiSeymour avatar iiSeymour commented on June 16, 2024

The first argument to the beam search is the probability output from your network where the first dimension is the width and the second is the number of features/labels (WxC).

>>> from fast_ctc_decode import beam_search
>>> posteriors = np.random.rand(100, 5).astype(np.float32)
>>>
>>> seq, path = beam_search(posteriors, alphabet="NACGT", beam_size=5)

Full documentation can be read either here or by using help(beam_search) from the Python interpreter, also the benchmark script compares fast_ctc_decode against parlance. The key difference is parlance take a batch of network outputs (NxWxC).

from fast-ctc-decode.

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.