Classes | |
| struct | crfsuite_attribute_t |
| An attribute. More... | |
| struct | crfsuite_item_t |
| An item. More... | |
| struct | crfsuite_instance_t |
| An instance (sequence of items and labels). More... | |
| struct | crfsuite_data_t |
| A data set. More... | |
Functions | |
| void | crfsuite_attribute_init (crfsuite_attribute_t *attr) |
| Initialize an attribute structure. | |
| void | crfsuite_attribute_set (crfsuite_attribute_t *attr, int aid, floatval_t value) |
| Set an attribute and its value. | |
| void | crfsuite_attribute_copy (crfsuite_attribute_t *dst, const crfsuite_attribute_t *src) |
| Copy the content of an attribute structure. | |
| void | crfsuite_attribute_swap (crfsuite_attribute_t *x, crfsuite_attribute_t *y) |
| Swap the contents of two attribute structures. | |
| void | crfsuite_item_init (crfsuite_item_t *item) |
| Initialize an item structure. | |
| void | crfsuite_item_init_n (crfsuite_item_t *item, int num_attributes) |
| Initialize an item structure with the number of attributes. | |
| void | crfsuite_item_finish (crfsuite_item_t *item) |
| Uninitialize an item structure. | |
| void | crfsuite_item_copy (crfsuite_item_t *dst, const crfsuite_item_t *src) |
| Copy the content of an item structure. | |
| void | crfsuite_item_swap (crfsuite_item_t *x, crfsuite_item_t *y) |
| Swap the contents of two item structures. | |
| int | crfsuite_item_append_attribute (crfsuite_item_t *item, const crfsuite_attribute_t *attr) |
| Append an attribute to the item structure. | |
| int | crfsuite_item_empty (crfsuite_item_t *item) |
| Check whether the item has no attribute. | |
| void | crfsuite_instance_init (crfsuite_instance_t *seq) |
| Initialize an instance structure. | |
| void | crfsuite_instance_init_n (crfsuite_instance_t *seq, int num_items) |
| Initialize an instance structure with the number of items. | |
| void | crfsuite_instance_finish (crfsuite_instance_t *seq) |
| Uninitialize an instance structure. | |
| void | crfsuite_instance_copy (crfsuite_instance_t *dst, const crfsuite_instance_t *src) |
| Copy the content of an instance structure. | |
| void | crfsuite_instance_swap (crfsuite_instance_t *x, crfsuite_instance_t *y) |
| Swap the contents of two instance structures. | |
| int | crfsuite_instance_append (crfsuite_instance_t *seq, const crfsuite_item_t *item, int label) |
| Append a pair of item and label to the instance structure. | |
| int | crfsuite_instance_empty (crfsuite_instance_t *seq) |
| Check whether the instance has no item. | |
| void | crfsuite_data_init (crfsuite_data_t *data) |
| Initialize a dataset structure. | |
| void | crfsuite_data_init_n (crfsuite_data_t *data, int n) |
| Initialize a dataset structure with the number of instances. | |
| void | crfsuite_data_finish (crfsuite_data_t *data) |
| Uninitialize a dataset structure. | |
| void | crfsuite_data_copy (crfsuite_data_t *dst, const crfsuite_data_t *src) |
| Copy the content of a dataset structure. | |
| void | crfsuite_data_swap (crfsuite_data_t *x, crfsuite_data_t *y) |
| Swap the contents of two dataset structures. | |
| int | crfsuite_data_append (crfsuite_data_t *data, const crfsuite_instance_t *inst) |
| Append an instance to the dataset structure. | |
| int | crfsuite_data_maxlength (crfsuite_data_t *data) |
| Obtain the maximum length of the instances in the dataset. | |
| int | crfsuite_data_totalitems (crfsuite_data_t *data) |
| Obtain the total number of items in the dataset. | |
| void crfsuite_attribute_copy | ( | crfsuite_attribute_t * | dst, |
| const crfsuite_attribute_t * | src | ||
| ) |
Copy the content of an attribute structure.
| dst | The pointer to the destination. |
| src | The pointer to the source. |
| void crfsuite_attribute_init | ( | crfsuite_attribute_t * | attr | ) |
Initialize an attribute structure.
| attr | The pointer to crfsuite_attribute_t. |
| void crfsuite_attribute_set | ( | crfsuite_attribute_t * | attr, |
| int | aid, | ||
| floatval_t | value | ||
| ) |
Set an attribute and its value.
| attr | The pointer to crfsuite_attribute_t. |
| aid | The attribute identifier. |
| value | The attribute value. |
| void crfsuite_attribute_swap | ( | crfsuite_attribute_t * | x, |
| crfsuite_attribute_t * | y | ||
| ) |
Swap the contents of two attribute structures.
| x | The pointer to an attribute structure. |
| y | The pointer to another attribute structure. |
| int crfsuite_data_append | ( | crfsuite_data_t * | data, |
| const crfsuite_instance_t * | inst | ||
| ) |
Append an instance to the dataset structure.
| data | The pointer to crfsuite_data_t. |
| inst | The instance to be added to the dataset. |
0 if successful, -1 otherwise. | void crfsuite_data_copy | ( | crfsuite_data_t * | dst, |
| const crfsuite_data_t * | src | ||
| ) |
Copy the content of a dataset structure.
| dst | The pointer to the destination. |
| src | The pointer to the source. |
| void crfsuite_data_finish | ( | crfsuite_data_t * | data | ) |
Uninitialize a dataset structure.
| data | The pointer to crfsuite_data_t. |
| void crfsuite_data_init | ( | crfsuite_data_t * | data | ) |
Initialize a dataset structure.
| data | The pointer to crfsuite_data_t. |
| void crfsuite_data_init_n | ( | crfsuite_data_t * | data, |
| int | n | ||
| ) |
Initialize a dataset structure with the number of instances.
| data | The pointer to crfsuite_data_t. |
| n | The number of instances. |
| int crfsuite_data_maxlength | ( | crfsuite_data_t * | data | ) |
Obtain the maximum length of the instances in the dataset.
| data | The pointer to crfsuite_data_t. |
| void crfsuite_data_swap | ( | crfsuite_data_t * | x, |
| crfsuite_data_t * | y | ||
| ) |
Swap the contents of two dataset structures.
| x | The pointer to a dataset structure. |
| y | The pointer to another dataset structure. |
| int crfsuite_data_totalitems | ( | crfsuite_data_t * | data | ) |
Obtain the total number of items in the dataset.
| data | The pointer to crfsuite_data_t. |
| int crfsuite_instance_append | ( | crfsuite_instance_t * | seq, |
| const crfsuite_item_t * | item, | ||
| int | label | ||
| ) |
Append a pair of item and label to the instance structure.
| seq | The pointer to crfsuite_instance_t. |
| item | The item to be added to the instance. |
| label | The label to be added to the instance. |
0 if successful, -1 otherwise. | void crfsuite_instance_copy | ( | crfsuite_instance_t * | dst, |
| const crfsuite_instance_t * | src | ||
| ) |
Copy the content of an instance structure.
| dst | The pointer to the destination. |
| src | The pointer to the source. |
| int crfsuite_instance_empty | ( | crfsuite_instance_t * | seq | ) |
Check whether the instance has no item.
| seq | The pointer to crfsuite_instance_t. |
1 if the instance has no attribute, 0 otherwise. | void crfsuite_instance_finish | ( | crfsuite_instance_t * | seq | ) |
Uninitialize an instance structure.
| seq | The pointer to crfsuite_instance_t. |
| void crfsuite_instance_init | ( | crfsuite_instance_t * | seq | ) |
Initialize an instance structure.
| seq | The pointer to crfsuite_instance_t. |
| void crfsuite_instance_init_n | ( | crfsuite_instance_t * | seq, |
| int | num_items | ||
| ) |
Initialize an instance structure with the number of items.
| seq | The pointer to crfsuite_instance_t. |
| num_items | The number of items. |
| void crfsuite_instance_swap | ( | crfsuite_instance_t * | x, |
| crfsuite_instance_t * | y | ||
| ) |
Swap the contents of two instance structures.
| x | The pointer to an instance structure. |
| y | The pointer to another instance structure. |
| int crfsuite_item_append_attribute | ( | crfsuite_item_t * | item, |
| const crfsuite_attribute_t * | attr | ||
| ) |
Append an attribute to the item structure.
| item | The pointer to crfsuite_item_t. |
| attr | The attribute to be added to the item. |
0 if successful, -1 otherwise. | void crfsuite_item_copy | ( | crfsuite_item_t * | dst, |
| const crfsuite_item_t * | src | ||
| ) |
Copy the content of an item structure.
| dst | The pointer to the destination. |
| src | The pointer to the source. |
| int crfsuite_item_empty | ( | crfsuite_item_t * | item | ) |
Check whether the item has no attribute.
| item | The pointer to crfsuite_item_t. |
1 if the item has no attribute, 0 otherwise. | void crfsuite_item_finish | ( | crfsuite_item_t * | item | ) |
Uninitialize an item structure.
| item | The pointer to crfsuite_item_t. |
| void crfsuite_item_init | ( | crfsuite_item_t * | item | ) |
Initialize an item structure.
| item | The pointer to crfsuite_item_t. |
| void crfsuite_item_init_n | ( | crfsuite_item_t * | item, |
| int | num_attributes | ||
| ) |
Initialize an item structure with the number of attributes.
| item | The pointer to crfsuite_item_t. |
| num_attributes | The number of attributes. |
| void crfsuite_item_swap | ( | crfsuite_item_t * | x, |
| crfsuite_item_t * | y | ||
| ) |
Swap the contents of two item structures.
| x | The pointer to an item structure. |
| y | The pointer to another item structure. |