Helper class for morphology data (upos, features) binarization.
More...
#include </home/runner/work/lima/lima/deeplima/libs/morph_model/morph_model.h>
Helper class for morphology data (upos, features) binarization.
Get id from data string and reverse.
Definition at line 92 of file morph_model.h.
◆ morph_model_t() [1/2]
| deeplima::morph_model::morph_model_t::morph_model_t |
( |
| ) |
|
|
inline |
◆ morph_model_t() [2/2]
| deeplima::morph_model::morph_model_t::morph_model_t |
( |
const std::string & |
str | ) |
|
◆ add_feat()
| size_t deeplima::morph_model::morph_model_t::add_feat |
( |
const std::string & |
name | ) |
|
|
inlineprotected |
◆ add_upos()
| size_t deeplima::morph_model::morph_model_t::add_upos |
( |
const std::string & |
name | ) |
|
|
inlineprotected |
◆ convert() [1/2]
| morph_feats_t deeplima::morph_model::morph_model_t::convert |
( |
const std::string & |
upos, |
|
|
const std::map< std::string, std::set< std::string > > & |
feats |
|
) |
| const |
◆ convert() [2/2]
template<typename F >
| morph_feats_t deeplima::morph_model::morph_model_t::convert |
( |
F |
featid2value | ) |
const |
|
inline |
◆ decode_feat()
◆ decode_upos()
◆ decode_upos_to_str()
| const string & deeplima::morph_model::morph_model_t::decode_upos_to_str |
( |
const morph_feats_t & |
feats | ) |
const |
◆ get_feat_id()
| size_t deeplima::morph_model::morph_model_t::get_feat_id |
( |
const std::string & |
name | ) |
const |
|
inlineprotected |
◆ get_feat_idx()
| size_t deeplima::morph_model::morph_model_t::get_feat_idx |
( |
const std::string & |
feat_name | ) |
const |
|
inline |
◆ get_feat_name()
| const std::string & deeplima::morph_model::morph_model_t::get_feat_name |
( |
size_t |
feat_id | ) |
const |
|
inline |
◆ get_feat_vec_ref()
| const std::vector< std::string > & deeplima::morph_model::morph_model_t::get_feat_vec_ref |
( |
size_t |
feat_id | ) |
const |
|
inline |
◆ get_feats_count()
| size_t deeplima::morph_model::morph_model_t::get_feats_count |
( |
| ) |
const |
◆ get_upos_id()
| size_t deeplima::morph_model::morph_model_t::get_upos_id |
( |
const std::string & |
name | ) |
const |
|
inline |
◆ has_feat()
| bool deeplima::morph_model::morph_model_t::has_feat |
( |
const std::string & |
feat_name | ) |
const |
|
inline |
◆ to_string() [1/2]
| string deeplima::morph_model::morph_model_t::to_string |
( |
| ) |
const |
◆ to_string() [2/2]
| std::string deeplima::morph_model::morph_model_t::to_string |
( |
const morph_feats_t & |
feats | ) |
const |
◆ morph_model_builder
◆ m_feats
| std::vector<dict_t> deeplima::morph_model::morph_model_t::m_feats |
◆ m_feats2mask
| std::vector<std::map<size_t, size_t> > deeplima::morph_model::morph_model_t::m_feats2mask |
◆ m_masks
| std::vector<feat_base_t> deeplima::morph_model::morph_model_t::m_masks |
◆ m_offset
| std::vector<uint8_t> deeplima::morph_model::morph_model_t::m_offset |
◆ m_upos_mask
| feat_base_t deeplima::morph_model::morph_model_t::m_upos_mask |
The documentation for this class was generated from the following files: