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

RAII wrapper for offline punctuation restoration. More...

#include <cxx-api.h>

+ Inheritance diagram for sherpa_onnx::cxx::OfflinePunctuation:
+ Collaboration diagram for sherpa_onnx::cxx::OfflinePunctuation:

Public Member Functions

void Destroy (const SherpaOnnxOfflinePunctuation *p) const
 Destroy the wrapped C handle.
 
std::string AddPunctuation (const std::string &text) const
 Add punctuation to a complete input text.
 
- Public Member Functions inherited from sherpa_onnx::cxx::MoveOnly< OfflinePunctuation, SherpaOnnxOfflinePunctuation >
 MoveOnly ()=default
 Construct an empty wrapper.
 
 MoveOnly (const SherpaOnnxOfflinePunctuation *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 SherpaOnnxOfflinePunctuationGet () const
 Return the wrapped raw pointer without transferring ownership.
 
const SherpaOnnxOfflinePunctuationRelease ()
 Release ownership of the wrapped raw pointer.
 

Static Public Member Functions

static OfflinePunctuation Create (const OfflinePunctuationConfig &config)
 Create an offline punctuation model.
 

Additional Inherited Members

- Protected Attributes inherited from sherpa_onnx::cxx::MoveOnly< OfflinePunctuation, SherpaOnnxOfflinePunctuation >
const SherpaOnnxOfflinePunctuationp_
 

Detailed Description

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

Member Function Documentation

◆ AddPunctuation()

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

◆ Create()

static OfflinePunctuation sherpa_onnx::cxx::OfflinePunctuation::Create ( const OfflinePunctuationConfig config)
static

◆ Destroy()

void sherpa_onnx::cxx::OfflinePunctuation::Destroy ( const SherpaOnnxOfflinePunctuation p) const

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