add hotwords docstring to offline_recognizer and online_recognizer (#546)
This commit is contained in:
@@ -82,6 +82,12 @@ class OfflineRecognizer(object):
|
|||||||
max_active_paths:
|
max_active_paths:
|
||||||
Maximum number of active paths to keep. Used only when
|
Maximum number of active paths to keep. Used only when
|
||||||
decoding_method is modified_beam_search.
|
decoding_method is modified_beam_search.
|
||||||
|
hotwords_file:
|
||||||
|
The file containing hotwords, one words/phrases per line, and for each
|
||||||
|
phrase the bpe/cjkchar are separated by a space.
|
||||||
|
hotwords_score:
|
||||||
|
The hotword score of each token for biasing word/phrase. Used only if
|
||||||
|
hotwords_file is given with modified_beam_search as decoding method.
|
||||||
blank_penalty:
|
blank_penalty:
|
||||||
The penalty applied on blank symbol during decoding.
|
The penalty applied on blank symbol during decoding.
|
||||||
debug:
|
debug:
|
||||||
|
|||||||
@@ -100,6 +100,12 @@ class OnlineRecognizer(object):
|
|||||||
max_active_paths:
|
max_active_paths:
|
||||||
Use only when decoding_method is modified_beam_search. It specifies
|
Use only when decoding_method is modified_beam_search. It specifies
|
||||||
the maximum number of active paths during beam search.
|
the maximum number of active paths during beam search.
|
||||||
|
hotwords_file:
|
||||||
|
The file containing hotwords, one words/phrases per line, and for each
|
||||||
|
phrase the bpe/cjkchar are separated by a space.
|
||||||
|
hotwords_score:
|
||||||
|
The hotword score of each token for biasing word/phrase. Used only if
|
||||||
|
hotwords_file is given with modified_beam_search as decoding method.
|
||||||
provider:
|
provider:
|
||||||
onnxruntime execution providers. Valid values are: cpu, cuda, coreml.
|
onnxruntime execution providers. Valid values are: cpu, cuda, coreml.
|
||||||
model_type:
|
model_type:
|
||||||
|
|||||||
Reference in New Issue
Block a user