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 ()
 Destroy the wrapped handle if present.
MoveOnly & operator= (const MoveOnly &)=delete
const SherpaOnnxOfflinePunctuation * Get () const
 Return the wrapped raw pointer without transferring ownership.
const SherpaOnnxOfflinePunctuation * Release ()
 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 SherpaOnnxOfflinePunctuation * p_

Detailed Description

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

Member Function Documentation

◆ AddPunctuation()

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

◆ Create()

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: