STT/doc/C-Examples.rst
Josh Meyer 629706b262
Docs welcome page and Development / Inference page overhaul (#1793)
* Docs welcome page and Development / Inference page overhaul

* Address review comments

* Fix broken refs and other small adjustments

Co-authored-by: Reuben Morais <reuben.morais@gmail.com>
2021-03-17 10:14:50 +01:00

30 lines
704 B
ReStructuredText

C API Usage example
===================
Examples are from `native_client/client.cc`.
Creating a model instance and loading model
-------------------------------------------
.. literalinclude:: ../native_client/client.cc
:language: c
:linenos:
:lineno-match:
:start-after: sphinx-doc: c_ref_model_start
:end-before: sphinx-doc: c_ref_model_stop
Deploying trained model
-----------------------
.. literalinclude:: ../native_client/client.cc
:language: c
:linenos:
:lineno-match:
:start-after: sphinx-doc: c_ref_inference_start
:end-before: sphinx-doc: c_ref_inference_stop
Full source code
----------------
See :download:`Full source code<../native_client/client.cc>`.