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