2 * li_recognizer_internal.h
4 * Adapted from cmu_recognizer_internal.h.
5 * Credit to Dean Rubine, Jim Kempf, and Ari Rapkin.
8 #define MAXSCLASSES 100
10 typedef struct PointList {
13 struct PointList* next;
17 char* file_name; /*The classifier file name.*/
18 int nclasses; /*Number of symbols in class */
19 point_list* ex[MAXSCLASSES]; /*The training examples.*/
20 char* cnames[MAXSCLASSES]; /*The class names.*/
21 point_list* canonex[MAXSCLASSES]; /*Canonicalized vrsions of strokes */
22 point_list* dompts[MAXSCLASSES]; /*Dominant points */
26 /*This structure contains extra fields for instance-specific data.*/
29 /*Instance-specific data.*/
30 uint li_magic; /*Just to make sure nobody's cheating.*/
31 rClassifier li_rc; /*The character classifier.*/
35 /*Name of the default classifier file.*/
36 #define LI_DEFAULT_CLASSIFIER_FILE "default.cl"
38 /*Classifier file extension.*/
39 #define LI_CLASSIFIER_EXTENSION ".cl"
41 /*Locale supported by recognizer.*/
42 #define LI_SUPPORTED_LOCALE REC_DEFAULT_LOCALE