📄 protocol_c.h
字号:
#ifndef PROTOCOL_C_H#define PROTOCOL_C_Htypedef struct protocol_c_data_ protocol_c_data;/** * Array of doubles. */typedef struct { int len; /**< Length of array */ double *array; /**< Array */} double_array;/** * Array of strings. */typedef struct { int len; /**< Length of array */ char **array; /**< Array */} str_array;protocol_c_data *protocol_c_new (int len, const char *addr);voidprotocol_c_free (protocol_c_data *pd);intprotocol_c_open (protocol_c_data *pd);intprotocol_c_close (protocol_c_data *pd);intprotocol_c_part (protocol_c_data *pd, const char *type, const char *charset, const char *string, int len);intprotocol_c_learn (protocol_c_data *pd, int class);intprotocol_c_learn_folder (protocol_c_data *pd, const char *class);intprotocol_c_unlearn (protocol_c_data *pd, int class);intprotocol_c_unlearn_folder (protocol_c_data *pd, const char *class);double_array *protocol_c_classify_score (protocol_c_data *pd, const char *str);int *protocol_c_classify_rank (protocol_c_data *pd, const char *str);intprotocol_c_classify_top (protocol_c_data *pd, const char *str);str_array *protocol_c_get_table (protocol_c_data *pd, const char *key);intprotocol_c_get_integer (protocol_c_data *pd, const char *key);char *protocol_c_get_string (protocol_c_data *pd, const char *key);intprotocol_c_set (protocol_c_data *pd, const char *key, const char *value);#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -