LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
deeplima::morph_model::morph_feats_t Class Reference

Encoding on one 64 bits integer of the set of morphological features for one token. More...

#include </home/runner/work/lima/lima/deeplima/libs/morph_model/morph_model.h>

Public Member Functions

 morph_feats_t ()
 
 morph_feats_t (const morph_feats_t &other)
 
 morph_feats_t (feat_base_t val)
 
void append (feat_base_t val)
 
bool operator== (const morph_feats_t other) const
 
bool operator!= (const morph_feats_t other) const
 
bool operator< (const morph_feats_t other) const
 
const feat_base_t & toBaseType () const
 
feat_base_t subvalue (feat_base_t mask, uint8_t offset) const
 
auto hash () const
 

Detailed Description

Encoding on one 64 bits integer of the set of morphological features for one token.

It provides several methods to add features, compare with other morphological features and to extract values of individual features.

Definition at line 35 of file morph_model.h.

Constructor & Destructor Documentation

◆ morph_feats_t() [1/3]

deeplima::morph_model::morph_feats_t::morph_feats_t ( )
inline

Definition at line 41 of file morph_model.h.

◆ morph_feats_t() [2/3]

deeplima::morph_model::morph_feats_t::morph_feats_t ( const morph_feats_t &  other)
inline

Definition at line 43 of file morph_model.h.

◆ morph_feats_t() [3/3]

deeplima::morph_model::morph_feats_t::morph_feats_t ( feat_base_t  val)
inline

Definition at line 45 of file morph_model.h.

Member Function Documentation

◆ append()

void deeplima::morph_model::morph_feats_t::append ( feat_base_t  val)
inline

Definition at line 48 of file morph_model.h.

◆ hash()

auto deeplima::morph_model::morph_feats_t::hash ( ) const
inline

Definition at line 79 of file morph_model.h.

◆ operator!=()

bool deeplima::morph_model::morph_feats_t::operator!= ( const morph_feats_t  other) const
inline

Definition at line 59 of file morph_model.h.

◆ operator<()

bool deeplima::morph_model::morph_feats_t::operator< ( const morph_feats_t  other) const
inline

Definition at line 64 of file morph_model.h.

◆ operator==()

bool deeplima::morph_model::morph_feats_t::operator== ( const morph_feats_t  other) const
inline

Definition at line 54 of file morph_model.h.

◆ subvalue()

feat_base_t deeplima::morph_model::morph_feats_t::subvalue ( feat_base_t  mask,
uint8_t  offset 
) const
inline

Definition at line 74 of file morph_model.h.

◆ toBaseType()

const feat_base_t & deeplima::morph_model::morph_feats_t::toBaseType ( ) const
inline

Definition at line 69 of file morph_model.h.


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