Frog
Public Member Functions | Public Attributes | List of all members
Rule Class Reference

#include <mbma_rule.h>

Collaboration diagram for Rule:
Collaboration graph
[legend]

Public Member Functions

 Rule (const std::vector< std::string > &, const icu::UnicodeString &, TiCC::LogStream &, TiCC::LogStream &, int)
 
 ~Rule ()
 
std::vector< std::string > extract_morphemes () const
 
std::string morpheme_string (bool=false) const
 
std::string pretty_string () const
 
icu::UnicodeString getKey (bool)
 
bool performEdits ()
 
void getCleanInflect ()
 
void reduceZeroNodes ()
 
void resolveBrackets (bool)
 
void resolve_inflections ()
 

Public Attributes

std::vector< RulePartrules
 
int debugFlag
 
CLEX::Type tag
 
icu::UnicodeString sortkey
 
icu::UnicodeString orig_word
 
std::string description
 
std::string inflection
 
Compound::Type compound
 
BracketNestbrackets
 
TiCC::LogStream & myLog
 
TiCC::LogStream & dbgLog
 
double confidence
 

Constructor & Destructor Documentation

◆ Rule()

Rule::Rule ( const std::vector< std::string > &  ,
const icu::UnicodeString &  ,
TiCC::LogStream &  ,
TiCC::LogStream &  ,
int   
)

◆ ~Rule()

Rule::~Rule ( )

Member Function Documentation

◆ extract_morphemes()

vector< string > Rule::extract_morphemes ( ) const

◆ getCleanInflect()

void Rule::getCleanInflect ( )

◆ getKey()

UnicodeString Rule::getKey ( bool  deep)

◆ morpheme_string()

string Rule::morpheme_string ( bool  structured = false) const

◆ performEdits()

bool Rule::performEdits ( )

◆ pretty_string()

string Rule::pretty_string ( ) const

◆ reduceZeroNodes()

void Rule::reduceZeroNodes ( )

◆ resolve_inflections()

void Rule::resolve_inflections ( )

◆ resolveBrackets()

void Rule::resolveBrackets ( bool  deep)

Member Data Documentation

◆ brackets

BracketNest* Rule::brackets

◆ compound

Compound::Type Rule::compound

◆ confidence

double Rule::confidence

◆ dbgLog

TiCC::LogStream& Rule::dbgLog

◆ debugFlag

int Rule::debugFlag

◆ description

std::string Rule::description

◆ inflection

std::string Rule::inflection

◆ myLog

TiCC::LogStream& Rule::myLog

◆ orig_word

icu::UnicodeString Rule::orig_word

◆ rules

std::vector<RulePart> Rule::rules

◆ sortkey

icu::UnicodeString Rule::sortkey

◆ tag

CLEX::Type Rule::tag

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