espnet.nets.ctc_prefix_score.CTCPrefixScore
Less than 1 minute
espnet.nets.ctc_prefix_score.CTCPrefixScore
class espnet.nets.ctc_prefix_score.CTCPrefixScore(x, blank, eos, xp)
Bases: object
Compute CTC label sequence scores
which is based on Algorithm 2 in WATANABE et al. “HYBRID CTC/ATTENTION ARCHITECTURE FOR END-TO-END SPEECH RECOGNITION,” but extended to efficiently compute the probablities of multiple labels simultaneously
initial_state()
Obtain an initial CTC state
- Returns: CTC state