CRFSuite model interface. More...
Public Attributes | |
void * | internal |
Pointer to the internal data (internal use only). | |
int | nref |
Reference counter (internal use only). | |
int(* | addref )(crfsuite_model_t *model) |
Increment the reference counter. | |
int(* | release )(crfsuite_model_t *model) |
Decrement the reference counter. | |
int(* | get_tagger )(crfsuite_model_t *model, crfsuite_tagger_t **ptr_tagger) |
Obtain the pointer to crfsuite_tagger_t interface. | |
int(* | get_labels )(crfsuite_model_t *model, crfsuite_dictionary_t **ptr_labels) |
Obtain the pointer to crfsuite_dictionary_t interface for labels. | |
int(* | get_attrs )(crfsuite_model_t *model, crfsuite_dictionary_t **ptr_attrs) |
Obtain the pointer to crfsuite_dictionary_t interface for attributes. | |
int(* | dump )(crfsuite_model_t *model, FILE *fpo) |
Print the model in human-readable format. |
CRFSuite model interface.
int(* tag_crfsuite_model::addref)(crfsuite_model_t *model) |
Increment the reference counter.
model | The pointer to this model instance. |
int(* tag_crfsuite_model::dump)(crfsuite_model_t *model, FILE *fpo) |
Print the model in human-readable format.
model | The pointer to this model instance. |
fpo | The FILE* pointer. |
ptr_attrs | The pointer that receives a crfsuite_dictionary_t pointer. |
int(* tag_crfsuite_model::get_attrs)(crfsuite_model_t *model, crfsuite_dictionary_t **ptr_attrs) |
Obtain the pointer to crfsuite_dictionary_t interface for attributes.
model | The pointer to this model instance. |
ptr_attrs | The pointer that receives a crfsuite_dictionary_t pointer. |
int(* tag_crfsuite_model::get_labels)(crfsuite_model_t *model, crfsuite_dictionary_t **ptr_labels) |
Obtain the pointer to crfsuite_dictionary_t interface for labels.
model | The pointer to this model instance. |
ptr_labels | The pointer that receives a crfsuite_dictionary_t pointer. |
int(* tag_crfsuite_model::get_tagger)(crfsuite_model_t *model, crfsuite_tagger_t **ptr_tagger) |
Obtain the pointer to crfsuite_tagger_t interface.
model | The pointer to this model instance. |
ptr_tagger | The pointer that receives a crfsuite_tagger_t pointer. |
int(* tag_crfsuite_model::release)(crfsuite_model_t *model) |
Decrement the reference counter.
model | The pointer to this model instance. |