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 (const SherpaOnnxOnlinePunctuation *p)
 Construct a wrapper from a raw C handle.
 
 MoveOnly (const MoveOnly &)=delete
 
 MoveOnly (MoveOnly &&other)
 
 ~MoveOnly ()
 Destroy the wrapped handle if present.
 
MoveOnlyoperator= (const MoveOnly &)=delete
 
MoveOnlyoperator= (MoveOnly &&other)
 
const SherpaOnnxOnlinePunctuationGet () const
 Return the wrapped raw pointer without transferring ownership.
 
const SherpaOnnxOnlinePunctuationRelease ()
 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 SherpaOnnxOnlinePunctuationp_
 

Detailed Description

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

Member Function Documentation

◆ AddPunctuation()

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

◆ Create()

static 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: