Public Attributes
tag_crfsuite_trainer Struct Reference

CRFSuite trainer 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_trainer_t *trainer)
 Increment the reference counter.
int(* release )(crfsuite_trainer_t *trainer)
 Decrement the reference counter.
crfsuite_params_t *(* params )(crfsuite_trainer_t *trainer)
 Obtain the pointer to crfsuite_params_t interface.
void(* set_message_callback )(crfsuite_trainer_t *trainer, void *user, crfsuite_logging_callback cbm)
 Set the callback function and user-defined data.
int(* train )(crfsuite_trainer_t *trainer, const crfsuite_data_t *data, const char *filename, int holdout)
 Start a training process.

Detailed Description

CRFSuite trainer interface.


Member Data Documentation

Increment the reference counter.

Parameters:
trainerThe pointer to this trainer instance.
Returns:
int The reference count after this increment.

Obtain the pointer to crfsuite_params_t interface.

Parameters:
trainerThe pointer to this trainer instance.
Returns:
crfsuite_params_t* The pointer to crfsuite_params_t.

Decrement the reference counter.

Parameters:
trainerThe pointer to this trainer instance.
Returns:
int The reference count after this operation.

Set the callback function and user-defined data.

Parameters:
trainerThe pointer to this trainer instance.
userThe pointer to the user-defined data.
cbmThe pointer to the callback function.
int(* tag_crfsuite_trainer::train)(crfsuite_trainer_t *trainer, const crfsuite_data_t *data, const char *filename, int holdout)

Start a training process.

Parameters:
trainerThe pointer to this trainer instance.
dataThe poiinter to the data set.
filenameThe filename to which the trainer stores the model. If an empty string is specified, this function does not sture the model to a file.
holdoutThe holdout group.
Returns:
int The status code.

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