LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
deeplima::MwtLexicon::Rule Struct Reference

#include <deeplima/mwt_lexicon.h>

Public Member Functions

double score () const
bool better_than (const Rule &o) const
std::vector< std::string > apply (const std::string &surface) const

Public Attributes

bool suffix = true
std::string affix
std::string rewrite
std::vector< std::string > words
uint32_t support = 0
uint32_t applicable = 0

Detailed Description

Definition at line 66 of file mwt_lexicon.h.

Member Function Documentation

◆ apply()

std::vector< std::string > deeplima::MwtLexicon::Rule::apply ( const std::string & surface) const
inline

Definition at line 90 of file mwt_lexicon.h.

◆ better_than()

bool deeplima::MwtLexicon::Rule::better_than ( const Rule & o) const
inline

Definition at line 82 of file mwt_lexicon.h.

◆ score()

double deeplima::MwtLexicon::Rule::score ( ) const
inline

Definition at line 75 of file mwt_lexicon.h.

Member Data Documentation

◆ affix

std::string deeplima::MwtLexicon::Rule::affix

Definition at line 69 of file mwt_lexicon.h.

◆ applicable

uint32_t deeplima::MwtLexicon::Rule::applicable = 0

Definition at line 73 of file mwt_lexicon.h.

◆ rewrite

std::string deeplima::MwtLexicon::Rule::rewrite

Definition at line 70 of file mwt_lexicon.h.

◆ suffix

bool deeplima::MwtLexicon::Rule::suffix = true

Definition at line 68 of file mwt_lexicon.h.

◆ support

uint32_t deeplima::MwtLexicon::Rule::support = 0

Definition at line 72 of file mwt_lexicon.h.

◆ words

std::vector<std::string> deeplima::MwtLexicon::Rule::words

Definition at line 71 of file mwt_lexicon.h.


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