LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
deeplima::segmentation::impl::SegmentationInferenceWrapper< M > Class Template Reference

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

Public Member Functions

 SegmentationInferenceWrapper ()
 
void load (const std::string &fn)
 
size_t init_new_worker (size_t input_len, bool precomputed_input=false)
 
void predict (size_t worker_id, const typename M::tensor_t &inputs, int64_t input_begin, int64_t input_end, int64_t output_begin, int64_t output_end, std::shared_ptr< StdMatrix< uint8_t > > &output, const std::vector< size_t > &, const std::vector< std::string > &output_names)
 
const std::vector< ngram_descr_t > & get_ngram_descr () const
 
const M::dicts_holder_t & get_dicts () const
 
const std::vector< std::string > & get_output_str_dicts_names () const
 
const std::vector< std::vector< std::string > > & get_output_str_dicts () const
 

Protected Attributes

M m_impl
 

Detailed Description

template<class M>
class deeplima::segmentation::impl::SegmentationInferenceWrapper< M >

Definition at line 24 of file segmentation_wrapper.h.

Constructor & Destructor Documentation

◆ SegmentationInferenceWrapper()

template<class M >
deeplima::segmentation::impl::SegmentationInferenceWrapper< M >::SegmentationInferenceWrapper ( )
inline

Definition at line 27 of file segmentation_wrapper.h.

Member Function Documentation

◆ get_dicts()

template<class M >
const M::dicts_holder_t & deeplima::segmentation::impl::SegmentationInferenceWrapper< M >::get_dicts ( ) const
inline

Definition at line 65 of file segmentation_wrapper.h.

◆ get_ngram_descr()

template<class M >
const std::vector< ngram_descr_t > & deeplima::segmentation::impl::SegmentationInferenceWrapper< M >::get_ngram_descr ( ) const
inline

Definition at line 60 of file segmentation_wrapper.h.

◆ get_output_str_dicts()

template<class M >
const std::vector< std::vector< std::string > > & deeplima::segmentation::impl::SegmentationInferenceWrapper< M >::get_output_str_dicts ( ) const
inline

Definition at line 75 of file segmentation_wrapper.h.

◆ get_output_str_dicts_names()

template<class M >
const std::vector< std::string > & deeplima::segmentation::impl::SegmentationInferenceWrapper< M >::get_output_str_dicts_names ( ) const
inline

Definition at line 70 of file segmentation_wrapper.h.

◆ init_new_worker()

template<class M >
size_t deeplima::segmentation::impl::SegmentationInferenceWrapper< M >::init_new_worker ( size_t  input_len,
bool  precomputed_input = false 
)
inline

Definition at line 36 of file segmentation_wrapper.h.

◆ load()

template<class M >
void deeplima::segmentation::impl::SegmentationInferenceWrapper< M >::load ( const std::string &  fn)
inline

Definition at line 31 of file segmentation_wrapper.h.

◆ predict()

template<class M >
void deeplima::segmentation::impl::SegmentationInferenceWrapper< M >::predict ( size_t  worker_id,
const typename M::tensor_t &  inputs,
int64_t  input_begin,
int64_t  input_end,
int64_t  output_begin,
int64_t  output_end,
std::shared_ptr< StdMatrix< uint8_t > > &  output,
const std::vector< size_t > &  ,
const std::vector< std::string > &  output_names 
)
inline

Definition at line 41 of file segmentation_wrapper.h.

Member Data Documentation

◆ m_impl

template<class M >
M deeplima::segmentation::impl::SegmentationInferenceWrapper< M >::m_impl
protected

Definition at line 82 of file segmentation_wrapper.h.


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