File size: 981 Bytes
d596074
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
.. _dummies_tutorial_decoding:

Decoding
========

After :ref:`dummies_tutorial_training`, we can start decoding.

The command to start the decoding is quite simple:

.. code-block:: bash

   cd /tmp/icefall
   export PYTHONPATH=/tmp/icefall:$PYTHONPATH
   cd egs/yesno/ASR

   # We use CPU for decoding by setting the following environment variable
   export CUDA_VISIBLE_DEVICES=""

   ./tdnn/decode.py

The output logs are given below:

.. literalinclude:: ./code/decoding-yesno.txt

For the more curious
--------------------

.. code-block:: bash

   ./tdnn/decode.py --help

will print the usage information about ``./tdnn/decode.py``. For instance, you
can specify:

  - ``--epoch`` to use which checkpoint for decoding
  - ``--avg`` to select how many checkpoints to use for model averaging

You usually try different combinations of ``--epoch`` and ``--avg`` and select
one that leads to the lowest WER (`Word Error Rate <https://en.wikipedia.org/wiki/Word_error_rate>`_).