@@ -84,20 +84,21 @@ Installation of OpenSeq2Seq for speech recognition
84
84
CTC-based speech recognition models can use the following decoders to get a transcription out of a model's state:
85
85
86
86
* greedy decoder, the fastest, but might yield spelling errors (can be enabled with ``"use_language_model": False ``)
87
- * beam search decoder with language model rescoring, the most accurate, but the slowest (can be enabled with `` "use_language_model": True ``)
87
+ * beam search decoder with language model (LM) rescoring, the most accurate, but the slowest
88
88
89
- You can find more information about these decoders at :doc: ` DeepSpeech 2 page < /speech-recognition/deepspeech2 >` .
89
+ You can find more information about these decoders at :ref: ` decoders-ref ` section .
90
90
91
91
CTC beam search decoder with language model rescoring is an optional component and might be used for speech recognition inference only.
92
92
93
- Since TensorFlow does not support it by default, you will need to build TensorFlow
94
- from sources with a custom CTC decoder operation. In order to do that, follow
95
- the steps below. Alternatively, you can disable language model by setting
96
- "use_language_model" parameter of decoder to False, but that will lead to a
97
- worse model accuracy.
93
+ There are two implementations of CTC beam search decoder with LM rescoring in OpenSeq2Seq:
98
94
99
- How to install a CTC decoder with language model to TensorFlow (optional)
100
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
95
+ * Baidu CTC decoder (the recommended). It can be installed with ``scripts/install_decoders.sh `` command.
96
+ To test the installation please run ``python scripts/ctc_decoders_test.py ``.
97
+
98
+ * Custom native TF op (rather deprecated). See installation instructions below.
99
+
100
+ How to build a custom native TF op for CTC decoder with language model (optional)
101
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
101
102
102
103
First of all, make sure that you installed CUDA >= 10.0, cuDNN >= 7.4, NCCL >= 2.3.
103
104
0 commit comments