espnet2.speechlm.core_lm.abs_core_lm.SpeechLMInferenceOptions
Less than 1 minute
espnet2.speechlm.core_lm.abs_core_lm.SpeechLMInferenceOptions
class espnet2.speechlm.core_lm.abs_core_lm.SpeechLMInferenceOptions(device: str = 'cpu', search_algo: str = 'sampling', nbest: int = 1, sampling_temperature: float = 1.0, top_k: int = 20, maxlenratio: float = 0.0, minlenratio: float = 0.0, eos: int = 5, start: int = 1, masks: torch.Tensor = None, nq: int = None)
Bases: object
device : str = 'cpu'
eos : int = 5
masks : Tensor = None
maxlenratio : float = 0.0
minlenratio : float = 0.0
nbest : int = 1
nq : int = None
sampling_temperature : float = 1.0
search_algo : str = 'sampling'
start : int = 1
top_k : int = 20