Classes | |
| struct | crfsuite_label_evaluation_t |
| Label-wise performance values. More... | |
| struct | crfsuite_evaluation_t |
| An overall performance values. More... | |
Functions | |
| void | crfsuite_evaluation_init (crfsuite_evaluation_t *eval, int n) |
| Initialize an evaluation structure. | |
| void | crfsuite_evaluation_finish (crfsuite_evaluation_t *eval) |
| Uninitialize an evaluation structure. | |
| void | crfsuite_evaluation_clear (crfsuite_evaluation_t *eval) |
| Reset an evaluation structure. | |
| int | crfsuite_evaluation_accmulate (crfsuite_evaluation_t *eval, const int *reference, const int *prediction, int T) |
| Accmulate the correctness of the predicted label sequence. | |
| void | crfsuite_evaluation_finalize (crfsuite_evaluation_t *eval) |
| Finalize the evaluation result. | |
| void | crfsuite_evaluation_output (crfsuite_evaluation_t *eval, crfsuite_dictionary_t *labels, crfsuite_logging_callback cbm, void *user) |
| Print the evaluation result. | |
| int crfsuite_evaluation_accmulate | ( | crfsuite_evaluation_t * | eval, |
| const int * | reference, | ||
| const int * | prediction, | ||
| int | T | ||
| ) |
Accmulate the correctness of the predicted label sequence.
| eval | The pointer to crfsuite_evaluation_t. |
| reference | The reference label sequence. |
| prediction | The predicted label sequence. |
| T | The length of the label sequence. |
0 if succeeded, 1 otherwise. | void crfsuite_evaluation_clear | ( | crfsuite_evaluation_t * | eval | ) |
Reset an evaluation structure.
| eval | The pointer to crfsuite_evaluation_t. |
| void crfsuite_evaluation_finalize | ( | crfsuite_evaluation_t * | eval | ) |
Finalize the evaluation result.
| eval | The pointer to crfsuite_evaluation_t. |
| void crfsuite_evaluation_finish | ( | crfsuite_evaluation_t * | eval | ) |
Uninitialize an evaluation structure.
| eval | The pointer to crfsuite_evaluation_t. |
| void crfsuite_evaluation_init | ( | crfsuite_evaluation_t * | eval, |
| int | n | ||
| ) |
Initialize an evaluation structure.
| eval | The pointer to crfsuite_evaluation_t. |
| n | The number of labels in the dataset. |
| void crfsuite_evaluation_output | ( | crfsuite_evaluation_t * | eval, |
| crfsuite_dictionary_t * | labels, | ||
| crfsuite_logging_callback | cbm, | ||
| void * | user | ||
| ) |
Print the evaluation result.
| eval | The pointer to crfsuite_evaluation_t. |
| labels | The pointer to the label dictionary. |
| cbm | The callback function to receive the evaluation result. |
| user | The pointer to the user data that is forwarded to the callback function. |