Skip to content

Commit

Permalink
Fix an error when attention decoder rescoring returns None. (#90)
Browse files Browse the repository at this point in the history
  • Loading branch information
csukuangfj authored Oct 22, 2021
1 parent 902e0b2 commit 712ead8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 2 additions & 5 deletions docs/source/installation/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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``:
Expand Down
2 changes: 1 addition & 1 deletion egs/librispeech/ASR/conformer_ctc/decode.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down

0 comments on commit 712ead8

Please sign in to comment.