diff --git a/docs/source/installation/index.rst b/docs/source/installation/index.rst index f960033e8..0f846c77c 100644 --- a/docs/source/installation/index.rst +++ b/docs/source/installation/index.rst @@ -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``: diff --git a/egs/librispeech/ASR/conformer_ctc/decode.py b/egs/librispeech/ASR/conformer_ctc/decode.py index bddb832b0..3b1d34757 100755 --- a/egs/librispeech/ASR/conformer_ctc/decode.py +++ b/egs/librispeech/ASR/conformer_ctc/decode.py @@ -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