Tagger-evaluation utility class.
Public Types | |
enum | evalStatus { MEF_None = 0x0000, MEF_TokMismatch = 0x0002, MEF_BestMismatch = 0x0004, MEF_EmptyClass1 = 0x0008, MEF_EmptyClass2 = 0x0010, MEF_ImpClass1 = 0x0020, MEF_ImpClass2 = 0x0040, MEF_XImpClass1 = 0x0080, MEF_XImpClass2 = 0x0100 } |
Public Member Functions | |
mootEval (void) | |
void | clear (void) |
int | compareTokens (const mootToken &tok1, const mootToken &tok2) |
bool | isTokenMismatch (void) |
bool | isBestMismatch (void) |
bool | isEmptyClass1 (void) |
bool | isEmptyClass2 (void) |
bool | isImpClass1 (void) |
bool | isImpClass2 (void) |
bool | isXImpClass1 (void) |
bool | isXImpClass2 (void) |
string | status_string (void) |
Public Attributes | |
int | status |
Enum for evaluation flags
|
inline |
|
inline |
Clear the object
References compareTokens(), and MEF_None.
|
inline |
Compare content of two mootSentence objects True after compareTokens(tok1,tok2) iff tokens mismatchedw
References MEF_TokMismatch.
|
inline |
True after compareTokens(tok1,tok2) iff best-tags mismatched
References MEF_BestMismatch.
|
inline |
True after compareTokens(tok1,tok2) iff tok1 had empty analyses: iff
References MEF_EmptyClass1.
|
inline |
True after compareTokens(tok1,tok2) iff tok2 had empty analyses: iff
References MEF_EmptyClass2.
|
inline |
True after compareTokens(tok1,tok2)
iff tok1 had impossible non-empty analysis-set: iff
References MEF_ImpClass1.
|
inline |
True after compareTokens(tok1,tok2)
iff tok2 had impossible non-empty analysis-set: iff
References MEF_ImpClass2.
|
inline |
True after compareTokens(tok1,tok2)
iff tok1 had cross-impossible non-empty analysis-set: iff
References MEF_XImpClass1.
|
inline |
True after compareTokens(tok1,tok2)
iff tok2 had cross-impossible non-empty analysis-set: iff
References MEF_XImpClass2, and status_string().
string moot::mootEval::status_string | ( | void | ) |
Returns canonical string-form of a mootEvalFlag: this string 3 fields of 2 ASCII characters each, each character corresponding to one of the bits in flags
. The output looks like:
{
:Tok:}{:Best:}":"{:Empty1:}{:Imp1:}{:XImp1:}":"{:Empty2:}{:Imp2:}{:XImp2:}
where a literal '-' indicates an unset flag, and any other character indicates that the flag is set. The actual characters used are mnemonics for the corresponding flags:
(t|-)(b|-):(e|-)(i|-)(x|-):(e|-)(i|-)(x|-)
Referenced by isXImpClass2().
int moot::mootEval::status |
status flags for this object