Merge pull request #3185 from lissyx/doc-generate-scorer
Doc generate scorer
This commit is contained in:
commit
aa597b3f1f
|
@ -77,6 +77,20 @@ You can now use Bazel to build the main DeepSpeech library, ``libdeepspeech.so``
|
||||||
|
|
||||||
The generated binaries will be saved to ``bazel-bin/native_client/``.
|
The generated binaries will be saved to ``bazel-bin/native_client/``.
|
||||||
|
|
||||||
|
.. _build-generate-scorer-package:
|
||||||
|
|
||||||
|
Compile ``generate_scorer_package``
|
||||||
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
|
Following the same setup as for ``libdeepspeech.so`` above, you can rebuild the ``generate_scorer_package`` binary by adding its target to the command line: ``//native_client:generate_scorer_package``.
|
||||||
|
Using the example from above you can build the library and that binary at the same time:
|
||||||
|
|
||||||
|
.. code-block::
|
||||||
|
|
||||||
|
bazel build --workspace_status_command="bash native_client/bazel_workspace_status_cmd.sh" --config=monolithic -c opt --copt=-O3 --copt="-D_GLIBCXX_USE_CXX11_ABI=0" --copt=-fvisibility=hidden //native_client:libdeepspeech.so //native_client:generate_scorer_package
|
||||||
|
|
||||||
|
The generated binaries will be saved to ``bazel-bin/native_client/``.
|
||||||
|
|
||||||
Compile Language Bindings
|
Compile Language Bindings
|
||||||
^^^^^^^^^^^^^^^^^^^^^^^^^
|
^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
|
|
|
@ -49,6 +49,9 @@ Afterwards you can use ``generate_scorer_package`` to generate the scorer packag
|
||||||
./generate_scorer_package --alphabet ../alphabet.txt --lm lm.binary --vocab vocab-500000.txt \
|
./generate_scorer_package --alphabet ../alphabet.txt --lm lm.binary --vocab vocab-500000.txt \
|
||||||
--package kenlm.scorer --default_alpha 0.931289039105002 --default_beta 1.1834137581510284
|
--package kenlm.scorer --default_alpha 0.931289039105002 --default_beta 1.1834137581510284
|
||||||
|
|
||||||
|
The ``generate_scorer_package`` binary is part of the released ``native_client.tar.xz``. If for some reason you need to rebuild it,
|
||||||
|
please refer to how to :ref:`build-generate-scorer-package`.
|
||||||
|
|
||||||
Building your own scorer
|
Building your own scorer
|
||||||
------------------------
|
------------------------
|
||||||
|
|
||||||
|
|
|
@ -287,6 +287,8 @@ UTF-8 mode
|
||||||
DeepSpeech includes a UTF-8 operating mode which can be useful to model languages with very large alphabets, such as Chinese Mandarin. For details on how it works and how to use it, see :ref:`decoder-docs`.
|
DeepSpeech includes a UTF-8 operating mode which can be useful to model languages with very large alphabets, such as Chinese Mandarin. For details on how it works and how to use it, see :ref:`decoder-docs`.
|
||||||
|
|
||||||
|
|
||||||
|
.. _training-data-augmentation:
|
||||||
|
|
||||||
Augmentation
|
Augmentation
|
||||||
^^^^^^^^^^^^
|
^^^^^^^^^^^^
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue