sherpa-onnx C API 1.0
Public C API and C++ wrapper for sherpa-onnx
Loading...
Searching...
No Matches
SherpaOnnxOnlinePunctuationModelConfig Struct Reference

Online punctuation model configuration. More...

#include <c-api.h>

Public Attributes

const char * cnn_bilstm
 
const char * bpe_vocab
 
int32_t num_threads
 
int32_t debug
 
const char * provider
 

Detailed Description

Example using sherpa-onnx-online-punct-en-2024-08-06:

memset(&model, 0, sizeof(model));
model.cnn_bilstm =
"./sherpa-onnx-online-punct-en-2024-08-06/model.int8.onnx"; model.bpe_vocab =
"./sherpa-onnx-online-punct-en-2024-08-06/bpe.vocab"; model.num_threads = 1;
model.provider = "cpu";
Online punctuation model configuration.
Definition c-api.h:3593

Definition at line 3593 of file c-api.h.

Member Data Documentation

◆ bpe_vocab

const char* SherpaOnnxOnlinePunctuationModelConfig::bpe_vocab

BPE vocabulary used by the model.

Definition at line 3597 of file c-api.h.

◆ cnn_bilstm

const char* SherpaOnnxOnlinePunctuationModelConfig::cnn_bilstm

Online punctuation model file.

Definition at line 3595 of file c-api.h.

◆ debug

int32_t SherpaOnnxOnlinePunctuationModelConfig::debug

Non-zero to print debug information.

Definition at line 3601 of file c-api.h.

◆ num_threads

int32_t SherpaOnnxOnlinePunctuationModelConfig::num_threads

Number of inference threads.

Definition at line 3599 of file c-api.h.

◆ provider

const char* SherpaOnnxOnlinePunctuationModelConfig::provider

Execution provider such as "cpu".

Definition at line 3603 of file c-api.h.


The documentation for this struct was generated from the following file: