|
sherpa-onnx C API 1.0
Public C API and C++ wrapper for sherpa-onnx
|
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. | |
| MoveOnly & | operator= (const MoveOnly &)=delete |
| MoveOnly & | operator= (MoveOnly &&other) |
| 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_ |
| std::string sherpa_onnx::cxx::OfflinePunctuation::AddPunctuation | ( | const std::string & | text | ) | const |
|
static |
| void sherpa_onnx::cxx::OfflinePunctuation::Destroy | ( | const SherpaOnnxOfflinePunctuation * | p | ) | const |