def nbest(self): """ nbest(Decoder self) -> NBestList Get an iterator over the best hypotheses, optionally within a selected region of the utterance. Iterator is empty now, it must be advanced with ps_nbest_next first. The function may also return a NULL which means that there is no hypothesis available for this utterance. Parameters: ----------- ps: Decoder. sf: Start frame for N-best search (0 for whole utterance) ef: End frame for N-best search (-1 for whole utterance) ctx1: First word of trigram context (NULL for whole utterance) ctx2: First word of trigram context (NULL for whole utterance) Iterator over N-best hypotheses or NULL if no hypothesis is available """ return _pocketsphinx.Decoder_nbest(self)
def nbest(self): """nbest(Decoder self) -> NBestList""" return _pocketsphinx.Decoder_nbest(self)