#include <deeplima/segmentation/impl/segmentation_decoder.h>
|
| | SegmentationDecoder (std::shared_ptr< StdMatrix< uint8_t > > out, const std::vector< uint8_t > &len) |
| |
| void | init () |
| |
| void | register_handler (const segmentation_callback_t fn) |
| |
| void | save_current_token (size_t &pos, size_t &temp_token_len, const char *start) |
| |
| void | consome_character (size_t &pos, uint64_t from, const char *pch) |
| |
| uint64_t | decode (const char **pch, uint32_t max, uint64_t from, uint64_t to) |
| |
| | CharReader () |
| |
| bool | read (const char **pch, const char *end, uint8_t len) |
| |
| bool | not_empty () const |
| |
| bool | start_reading (const char **pch, const char *end, uint8_t len, std::vector< uint8_t > &dst, token_pos &tmp, bool inside) |
| |
Definition at line 182 of file segmentation_decoder.h.
◆ SegmentationDecoder()
| deeplima::segmentation::impl::SegmentationDecoder::SegmentationDecoder |
( |
std::shared_ptr< StdMatrix< uint8_t > > |
out, |
|
|
const std::vector< uint8_t > & |
len |
|
) |
| |
|
inline |
◆ consome_character()
| void deeplima::segmentation::impl::SegmentationDecoder::consome_character |
( |
size_t & |
pos, |
|
|
uint64_t |
from, |
|
|
const char * |
pch |
|
) |
| |
|
inline |
◆ decode()
| uint64_t deeplima::segmentation::impl::SegmentationDecoder::decode |
( |
const char ** |
pch, |
|
|
uint32_t |
max, |
|
|
uint64_t |
from, |
|
|
uint64_t |
to |
|
) |
| |
|
inline |
◆ init()
| void deeplima::segmentation::impl::SegmentationDecoder::init |
( |
| ) |
|
|
inline |
◆ register_handler()
◆ save_current_token()
| void deeplima::segmentation::impl::SegmentationDecoder::save_current_token |
( |
size_t & |
pos, |
|
|
size_t & |
temp_token_len, |
|
|
const char * |
start |
|
) |
| |
|
inline |
◆ m_callback
◆ m_len
| const std::vector<uint8_t>& deeplima::segmentation::impl::SegmentationDecoder::m_len |
|
protected |
◆ m_out
| std::shared_ptr< StdMatrix<uint8_t> > deeplima::segmentation::impl::SegmentationDecoder::m_out |
|
protected |
◆ m_temp_text
| std::vector<uint8_t> deeplima::segmentation::impl::SegmentationDecoder::m_temp_text |
|
protected |
◆ m_tokens
| std::vector<token_pos> deeplima::segmentation::impl::SegmentationDecoder::m_tokens |
|
protected |
The documentation for this class was generated from the following file: