GRAMMAR DECODING


  • The ISIP decoder only performs lattice rescoring and does not deal with language models explicitly. The LM information is pre-compiled into the lattice file which is generated by HTK .

    Grammar compiler is to generate a lattice file from the input grammar. This output lattice file can be used as the input of the current ISIP decoder.


  • Example

    input grammar file:

    !SENT_START -> w1 1.0
    w1 -> w1 1.0
    w1 -> w2 1.0
    w2 -> w3 1.0
    w3 -> w4 1.0
    w4 -> !SENT_END 1.0

    output lattice file:

    N=8 L=8
    J=0 S=0 E=1 W=!SENT_START l=0.000
    J=1 S=1 E=2 W=w1 l=0.000
    J=2 S=2 E=3 W=!NULL l=0.000
    J=3 S=3 E=2 W=w1 l=0.000
    J=4 S=2 E=4 W=w2 l=0.000
    J=5 S=4 E=5 W=w3 l=0.000
    J=6 S=5 E=6 W=w4 l=0.000
    J=7 S=6 E=7 W=!SENT_END l=0.000