Public Attributes
tag_crfsuite_model Struct Reference

CRFSuite model interface. More...

List of all members.

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.

Detailed Description

CRFSuite model interface.


Member Data Documentation

Increment the reference counter.

Parameters:
modelThe pointer to this model instance.
Returns:
int The reference count after this increment.
int(* tag_crfsuite_model::dump)(crfsuite_model_t *model, FILE *fpo)

Print the model in human-readable format.

Parameters:
modelThe pointer to this model instance.
fpoThe FILE* pointer.
ptr_attrsThe pointer that receives a crfsuite_dictionary_t pointer.
Returns:
int The status code.

Obtain the pointer to crfsuite_dictionary_t interface for attributes.

Parameters:
modelThe pointer to this model instance.
ptr_attrsThe pointer that receives a crfsuite_dictionary_t pointer.
Returns:
int The status code.

Obtain the pointer to crfsuite_dictionary_t interface for labels.

Parameters:
modelThe pointer to this model instance.
ptr_labelsThe pointer that receives a crfsuite_dictionary_t pointer.
Returns:
int The status code.

Obtain the pointer to crfsuite_tagger_t interface.

Parameters:
modelThe pointer to this model instance.
ptr_taggerThe pointer that receives a crfsuite_tagger_t pointer.
Returns:
int The status code.

Decrement the reference counter.

Parameters:
modelThe pointer to this model instance.
Returns:
int The reference count after this operation.

Copyright (c) 2002-2011 by Naoaki Okazaki
Thu Aug 11 2011 12:37:06