Classes | |
| struct | tag_crfsuite_model |
| CRFSuite model interface. More... | |
| struct | tag_crfsuite_trainer |
| CRFSuite trainer interface. More... | |
| struct | tag_crfsuite_tagger |
| CRFSuite tagger interface. More... | |
| struct | tag_crfsuite_dictionary |
| CRFSuite dictionary interface. More... | |
| struct | tag_crfsuite_params |
| CRFSuite parameter interface. More... | |
Typedefs | |
| typedef struct tag_crfsuite_model | crfsuite_model_t |
| CRFSuite model interface. | |
| typedef struct tag_crfsuite_trainer | crfsuite_trainer_t |
| CRFSuite trainer interface. | |
| typedef struct tag_crfsuite_tagger | crfsuite_tagger_t |
| CRFSuite tagger interface. | |
| typedef struct tag_crfsuite_dictionary | crfsuite_dictionary_t |
| CRFSuite dictionary interface. | |
| typedef struct tag_crfsuite_params | crfsuite_params_t |
| CRFSuite parameter interface. | |
| typedef int(* | crfsuite_logging_callback )(void *user, const char *format, va_list args) |
| Type of callback function for logging. | |
Functions | |
| int | crfsuite_create_instance (const char *iid, void **ptr) |
| Create an instance of an object by an interface identifier. | |
| int | crfsuite_create_instance_from_file (const char *filename, void **ptr) |
| Create an instance of a model object from a model file. | |
| int | crfsuite_create_tagger (const char *filename, crfsuite_tagger_t **ptr_tagger, crfsuite_dictionary_t **ptr_attrs, crfsuite_dictionary_t **ptr_labels) |
| Create instances of tagging object from a model file. | |
| typedef struct tag_crfsuite_dictionary crfsuite_dictionary_t |
CRFSuite dictionary interface.
| typedef int(* crfsuite_logging_callback)(void *user, const char *format, va_list args) |
Type of callback function for logging.
| user | Pointer to the user-defined data. |
| format | Format string (compatible with prinf()). |
| args | Optional arguments for the format string. |
0 to continue; non-zero to cancel the training. | typedef struct tag_crfsuite_model crfsuite_model_t |
CRFSuite model interface.
| typedef struct tag_crfsuite_params crfsuite_params_t |
CRFSuite parameter interface.
| typedef struct tag_crfsuite_tagger crfsuite_tagger_t |
CRFSuite tagger interface.
| typedef struct tag_crfsuite_trainer crfsuite_trainer_t |
CRFSuite trainer interface.
| int crfsuite_create_instance | ( | const char * | iid, |
| void ** | ptr | ||
| ) |
Create an instance of an object by an interface identifier.
| iid | The interface identifier. |
| ptr | The pointer to void* that points to the instance of the object if successful, *ptr points to NULL otherwise. |
0 if this function creates an object successfully, 1 otherwise. | int crfsuite_create_instance_from_file | ( | const char * | filename, |
| void ** | ptr | ||
| ) |
Create an instance of a model object from a model file.
| filename | The filename of the model. |
| ptr | The pointer to void* that points to the instance of the model object if successful, *ptr points to NULL otherwise. |
0 if this function creates an object successfully, 1 otherwise. | int crfsuite_create_tagger | ( | const char * | filename, |
| crfsuite_tagger_t ** | ptr_tagger, | ||
| crfsuite_dictionary_t ** | ptr_attrs, | ||
| crfsuite_dictionary_t ** | ptr_labels | ||
| ) |
Create instances of tagging object from a model file.
| filename | The filename of the model. |
| ptr_tagger | The pointer to void* that points to the instance of the tagger object if successful, *ptr points to NULL otherwise. |
| ptr_attrs | The pointer to void* that points to the instance of the dictionary object for attributes if successful, *ptr points to NULL otherwise. |
| ptr_labels | The pointer to void* that points to the instance of the dictionary object for labels if successful, *ptr points to NULL otherwise. |
0 if this function creates an object successfully, 1 otherwise.