csukuangfj
commited on
Commit
·
16be569
1
Parent(s):
62e20af
fix a typo
Browse files
model.py
CHANGED
@@ -303,7 +303,7 @@ def _get_russian_pre_trained_model(
|
|
303 |
|
304 |
tokens = _get_token_filename(repo_id=repo_id, subfolder="lang")
|
305 |
|
306 |
-
recognizer = sherpa_onnx.OfflineRecognizer(
|
307 |
tokens=tokens,
|
308 |
encoder=encoder_model,
|
309 |
decoder=decoder_model,
|
|
|
303 |
|
304 |
tokens = _get_token_filename(repo_id=repo_id, subfolder="lang")
|
305 |
|
306 |
+
recognizer = sherpa_onnx.OfflineRecognizer.from_transducer(
|
307 |
tokens=tokens,
|
308 |
encoder=encoder_model,
|
309 |
decoder=decoder_model,
|