node-red-contrib-ctc-beam-search
    TypeScript icon, indicating that this package has built-in type declarations

    0.1.0 • Public • Published

    node-red-contrib-beam-search

    Implement Beam Search of CTC result as a Node-RED custom node

    Installation

    npm install node-red-contrib-ctc-beam-search

    Usage

    There are two properties for this custom node:

    • beam width: specify the beam width you want. It also matches the length of the result strings.
    • characters: specify the characters(vocabulary) in your CTC results. For English, usually it would be " abcdefghijklmnopqrstuvwxyz'" (not including the double quotes)

    And the blank shall be always the last one in the character array. But you don't have to include it in the characters property.

    The input payload would be number[][]. First dimension is the number of time slots and second dimension is for each character's log probability. The results that pass to next node is string[]. Its length would equal to beam width.

    Install

    npm i node-red-contrib-ctc-beam-search

    DownloadsWeekly Downloads

    1

    Version

    0.1.0

    License

    Apache-2.0

    Unpacked Size

    22.2 kB

    Total Files

    9

    Last publish

    Collaborators

    • yihongwang