Man page of tw_free(3), tw_free_prob_t(3), tw_free_config_t(3) and tw_free_categories(3)

Dieses Dokument ist nur in englischer Sprache verfügbar.

Index


NAME

tw_free, tw_free_prob_t, tw_free_config_t, tw_free_categories - free Textweiser objects and data structures

SYNOPSIS

C/C++ #include <tw.h>

 void tw_free(tw_t *tw);

 void tw_free_prob_t(tw_prob_t **probs);

 void tw_free_config_t(tw_config_t *config);

 void tw_free_categories(char **cats);

DESCRIPTION

tw_free() frees any resources allocated by a Textweiser object and closes the database connection.

tw_free_prob_t() frees a probability data structure as generated by tw_classify(3) and tw_classify_file(3).

tw_free_config_t() frees all memory used by a tw_config_t data structure as generated by tw_parse_config(3).

tw_free_categories() frees a category listing as generated by tw_get_categories(3).

PARAMETERS

tw_free() expects the following parameter:

tw (tw_t *)

Pointer to an initialized Textweiser object. See tw_init(3).

tw_free_prob_t() expects the following parameter:

probs (tw_prob_t **)

Pointer to pointers to category/probabilty data structures. See tw_classify(3) and tw_classify_file(3).

tw_free_config_t() expects the following parameter:

config (tw_config_t *)

Pointer to a configuration data structure as generated by tw_parse_config(3).

tw_free_categories() expects the following parameter:

cats (char **)

Pointer to pointers to characters ("string array"). See tw_get_categories(3).

RETURN VALUE

tw_free(), tw_free_prob_t(), tw_free_config_t() and tw_free_categories() do not return any value.

NOTES

tw_free_config_t() must only be used on unmodified data structures generated by tw_parse_config(3).

SEE ALSO

tw_init(3), tw_classify(3), tw_classify_file(3), tw_parse_config(3), tw_get_categories(3)

Textweiser User Manual

http://www.lingua-systems.com/text-classifier/textweiser-library/