Skip to content

Commit

Permalink
fix style.
Browse files Browse the repository at this point in the history
  • Loading branch information
kamirdin committed Oct 10, 2023
1 parent 909c4af commit 33cd997
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion python-api-examples/online-decode-files.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def get_args():
parser.add_argument(
"--lm",
type=str,
default=0.1,
default="",
help="""Used only when --decoding-method is modified_beam_search.
path of language model.
""",
Expand Down
10 changes: 5 additions & 5 deletions sherpa-onnx/python/sherpa_onnx/online_recognizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ def from_transducer(
hotwords_file: str = "",
provider: str = "cpu",
model_type: str = "",
lm:str = "",
scale:float = 0.1,
lm: str = "",
scale: float = 0.1,
):
"""
Please refer to
Expand Down Expand Up @@ -148,14 +148,14 @@ def from_transducer(
)

lm_config = OnlineLMConfig(
model = lm,
scale = scale,
model=lm,
scale=scale,
)

recognizer_config = OnlineRecognizerConfig(
feat_config=feat_config,
model_config=model_config,
lm_config = lm_config ,
lm_config=lm_config,
endpoint_config=endpoint_config,
enable_endpoint=enable_endpoint_detection,
decoding_method=decoding_method,
Expand Down

0 comments on commit 33cd997

Please sign in to comment.