mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-08-09 01:52:41 +00:00
Fix an error when attention decoder rescoring returns None. (#90)
This commit is contained in:
parent
902e0b238d
commit
712ead8207
@ -66,11 +66,8 @@ to install ``lhotse``.
|
||||
(3) Download icefall
|
||||
--------------------
|
||||
|
||||
``icefall`` is a collection of Python scripts, so you don't need to install it
|
||||
and we don't provide a ``setup.py`` to install it.
|
||||
|
||||
What you need is to download it and set the environment variable ``PYTHONPATH``
|
||||
to point to it.
|
||||
``icefall`` is a collection of Python scripts; what you need is to download it
|
||||
and set the environment variable ``PYTHONPATH`` to point to it.
|
||||
|
||||
Assume you want to place ``icefall`` in the folder ``/tmp``. The
|
||||
following commands show you how to setup ``icefall``:
|
||||
|
@ -385,7 +385,7 @@ def decode_one_batch(
|
||||
ans[lm_scale_str] = hyps
|
||||
else:
|
||||
for lm_scale in lm_scale_list:
|
||||
ans[lm_scale_str] = [[] * lattice.shape[0]]
|
||||
ans[f"{lm_scale}"] = [[] * lattice.shape[0]]
|
||||
return ans
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user