LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
deeplima::segmentation::impl::Utf8Reader< TBufferType, NUM_CHANNELS, BYTES_BUFFER_SIZE > Class Template Reference

#include <deeplima/segmentation/impl/utf8_reader.h>

Inheritance diagram for deeplima::segmentation::impl::Utf8Reader< TBufferType, NUM_CHANNELS, BYTES_BUFFER_SIZE >:
deeplima::segmentation::impl::CharNgramEncoder< Utf8Reader<> >

Public Member Functions

 Utf8Reader ()
void reset ()
void set_lexicon (const SegmLexicon *lexicon)
uint32_t parse_start (const uint8_t *str, int32_t *pos, int32_t len)
uint8_t parse (const uint8_t *str, int32_t *pos, int32_t len)
const buffer_t & get_buffer (uint8_t channel_idx) const
uint8_t get_len (uint8_t idx) const

Static Public Member Functions

static uint8_t bits_per_position (uint8_t channel_idx)

Protected Types

typedef TBufferType buffer_t

Detailed Description

template<class TBufferType = uint64_t, int NUM_CHANNELS = 5, int BYTES_BUFFER_SIZE = 8>
class deeplima::segmentation::impl::Utf8Reader< TBufferType, NUM_CHANNELS, BYTES_BUFFER_SIZE >

Definition at line 47 of file utf8_reader.h.

Member Typedef Documentation

◆ buffer_t

template<class TBufferType = uint64_t, int NUM_CHANNELS = 5, int BYTES_BUFFER_SIZE = 8>
typedef TBufferType deeplima::segmentation::impl::Utf8Reader< TBufferType, NUM_CHANNELS, BYTES_BUFFER_SIZE >::buffer_t
protected

Definition at line 50 of file utf8_reader.h.

Constructor & Destructor Documentation

◆ Utf8Reader()

template<class TBufferType = uint64_t, int NUM_CHANNELS = 5, int BYTES_BUFFER_SIZE = 8>
deeplima::segmentation::impl::Utf8Reader< TBufferType, NUM_CHANNELS, BYTES_BUFFER_SIZE >::Utf8Reader ( )
inline

Definition at line 73 of file utf8_reader.h.

Member Function Documentation

◆ bits_per_position()

template<class TBufferType = uint64_t, int NUM_CHANNELS = 5, int BYTES_BUFFER_SIZE = 8>
uint8_t deeplima::segmentation::impl::Utf8Reader< TBufferType, NUM_CHANNELS, BYTES_BUFFER_SIZE >::bits_per_position ( uint8_t channel_idx)
inlinestatic

Definition at line 201 of file utf8_reader.h.

◆ get_buffer()

template<class TBufferType = uint64_t, int NUM_CHANNELS = 5, int BYTES_BUFFER_SIZE = 8>
const buffer_t & deeplima::segmentation::impl::Utf8Reader< TBufferType, NUM_CHANNELS, BYTES_BUFFER_SIZE >::get_buffer ( uint8_t channel_idx) const
inline

Definition at line 190 of file utf8_reader.h.

◆ get_len()

template<class TBufferType = uint64_t, int NUM_CHANNELS = 5, int BYTES_BUFFER_SIZE = 8>
uint8_t deeplima::segmentation::impl::Utf8Reader< TBufferType, NUM_CHANNELS, BYTES_BUFFER_SIZE >::get_len ( uint8_t idx) const
inline

Definition at line 196 of file utf8_reader.h.

◆ parse()

template<class TBufferType = uint64_t, int NUM_CHANNELS = 5, int BYTES_BUFFER_SIZE = 8>
uint8_t deeplima::segmentation::impl::Utf8Reader< TBufferType, NUM_CHANNELS, BYTES_BUFFER_SIZE >::parse ( const uint8_t * str,
int32_t * pos,
int32_t len )
inline

Definition at line 120 of file utf8_reader.h.

◆ parse_start()

template<class TBufferType = uint64_t, int NUM_CHANNELS = 5, int BYTES_BUFFER_SIZE = 8>
uint32_t deeplima::segmentation::impl::Utf8Reader< TBufferType, NUM_CHANNELS, BYTES_BUFFER_SIZE >::parse_start ( const uint8_t * str,
int32_t * pos,
int32_t len )
inline

Definition at line 97 of file utf8_reader.h.

◆ reset()

template<class TBufferType = uint64_t, int NUM_CHANNELS = 5, int BYTES_BUFFER_SIZE = 8>
void deeplima::segmentation::impl::Utf8Reader< TBufferType, NUM_CHANNELS, BYTES_BUFFER_SIZE >::reset ( )
inline

Definition at line 82 of file utf8_reader.h.

◆ set_lexicon()

template<class TBufferType = uint64_t, int NUM_CHANNELS = 5, int BYTES_BUFFER_SIZE = 8>
void deeplima::segmentation::impl::Utf8Reader< TBufferType, NUM_CHANNELS, BYTES_BUFFER_SIZE >::set_lexicon ( const SegmLexicon * lexicon)
inline

Definition at line 92 of file utf8_reader.h.


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