espnet.nets.scorers.uasr.UASRPrefixScorer
Less than 1 minute
espnet.nets.scorers.uasr.UASRPrefixScorer
class espnet.nets.scorers.uasr.UASRPrefixScorer(eos: int)
Bases: CTCPrefixScorer
Decoder interface wrapper for CTCPrefixScore.
Initialize class.
batch_init_state(x: Tensor)
Get an initial state for decoding.
- Parameters:x (torch.Tensor) – The encoded feature tensor
Returns: initial state
init_state(x: Tensor)
Get an initial state for decoding.
- Parameters:x (torch.Tensor) – The encoded feature tensor
Returns: initial state