models.decoder.rst 888 Bytes
Newer Older
1
2
.. role:: hidden
    :class: hidden-section
moto's avatar
moto committed
3

4
5
6
7
8
9
torchaudio.models.decoder
=========================

.. currentmodule:: torchaudio.models.decoder

.. py:module:: torchaudio.models.decoder
moto's avatar
moto committed
10
11
12
13

Decoder Class
-------------

14
15
CTCDecoder
~~~~~~~~~~
moto's avatar
moto committed
16
17


18
.. autoclass:: CTCDecoder
moto's avatar
moto committed
19
20
21
22
23

  .. automethod:: __call__

  .. automethod:: idxs_to_tokens

Caroline Chen's avatar
Caroline Chen committed
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
CTCDecoderLM
~~~~~~~~~~~~

.. autoclass:: CTCDecoderLM

   .. automethod:: start

   .. automethod:: score

   .. automethod:: finish

CTCDecoderLMState
~~~~~~~~~~~~~~~~~

.. autoclass:: CTCDecoderLMState
   :members: children

   .. automethod:: child

   .. automethod:: compare



47
48
CTCHypothesis
~~~~~~~~~~~~~
49

50
.. autoclass:: CTCHypothesis
51

moto's avatar
moto committed
52
53
54
Factory Function
----------------

55
56
ctc_decoder
~~~~~~~~~~~
moto's avatar
moto committed
57

58
.. autoclass:: ctc_decoder
59

60
61
62
63
64
65
66
Utility Function
----------------

download_pretrained_files
~~~~~~~~~~~~~~~~~~~~~~~~~

.. autoclass:: download_pretrained_files