From 8ae25aebe17d4bb672092e74ae6c31cdae692775 Mon Sep 17 00:00:00 2001 From: Yibing Liu Date: Fri, 12 Jan 2018 21:53:43 +0800 Subject: [PATCH] Add more comments in init_ext_scorer() --- model_utils/model.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/model_utils/model.py b/model_utils/model.py index f6d3ef05..70ba7bb9 100644 --- a/model_utils/model.py +++ b/model_utils/model.py @@ -226,6 +226,17 @@ class DeepSpeech2Model(object): vocab_list): """Initialize the external scorer. + :param beam_alpha: Parameter associated with language model. + :type beam_alpha: float + :param beam_beta: Parameter associated with word count. + :type beam_beta: float + :param language_model_path: Filepath for language model. If it is + empty, the external scorer will be set to + None, and the decoding method will be pure + beam search without scorer. + :type language_model_path: basestring|None + :param vocab_list: List of tokens in the vocabulary, for decoding. + :type vocab_list: list """ if language_model_path != '': self.logger.info("begin to initialize the external scorer "