sherpa-onnx C API 1.0
Public C API and C++ wrapper for sherpa-onnx
Loading...
Searching...
No Matches
sherpa_onnx::cxx::OnlinePunctuation Class Reference

RAII wrapper for online punctuation restoration. More...

#include <cxx-api.h>

Inheritance diagram for sherpa_onnx::cxx::OnlinePunctuation:
Collaboration diagram for sherpa_onnx::cxx::OnlinePunctuation:

Public Member Functions

void Destroy (const SherpaOnnxOnlinePunctuation *p) const
 Destroy the wrapped C handle.
std::string AddPunctuation (const std::string &text) const
 Add punctuation to one input text chunk.
Public Member Functions inherited from sherpa_onnx::cxx::MoveOnly< OnlinePunctuation, SherpaOnnxOnlinePunctuation >
 MoveOnly ()=default
 Construct an empty wrapper.
 ~MoveOnly ()
 Destroy the wrapped handle if present.
MoveOnly & operator= (const MoveOnly &)=delete
const SherpaOnnxOnlinePunctuation * Get () const
 Return the wrapped raw pointer without transferring ownership.
const SherpaOnnxOnlinePunctuation * Release ()
 Release ownership of the wrapped raw pointer.

Static Public Member Functions

static OnlinePunctuation Create (const OnlinePunctuationConfig &config)
 Create an online punctuation model.

Additional Inherited Members

Protected Attributes inherited from sherpa_onnx::cxx::MoveOnly< OnlinePunctuation, SherpaOnnxOnlinePunctuation >
const SherpaOnnxOnlinePunctuation * p_

Detailed Description

Definition at line 1894 of file cxx-api.h.

Member Function Documentation

◆ AddPunctuation()

std::string sherpa_onnx::cxx::OnlinePunctuation::AddPunctuation ( const std::string & text) const

◆ Create()

OnlinePunctuation sherpa_onnx::cxx::OnlinePunctuation::Create ( const OnlinePunctuationConfig & config)
static

◆ Destroy()

void sherpa_onnx::cxx::OnlinePunctuation::Destroy ( const SherpaOnnxOnlinePunctuation * p) const

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