espnet2.asr_transducer.beam_search_transducer.Hypothesis
Less than 1 minute
espnet2.asr_transducer.beam_search_transducer.Hypothesis
class espnet2.asr_transducer.beam_search_transducer.Hypothesis(score: float, yseq: List[int], dec_state: Tuple[Tensor, Tensor | None] | None = None, lm_state: Dict[str, Any] | List[Any] | None = None)
Bases: object
Default hypothesis definition for Transducer search algorithms.
- Parameters:
- score – Total log-probability.
- yseq – Label sequence as integer ID sequence.
- dec_state – RNN/MEGA Decoder state (None if Stateless).
- lm_state – RNNLM state. ((N, D_lm), (N, D_lm)) or None
dec_state : Tuple[Tensor, Tensor | None] | None = None
lm_state : Dict[str, Any] | List[Any] | None = None
score : float
yseq : List[int]