2 * li_recognizer_internal.h
4 * Adapted from cmu_recognizer_internal.h.
5 * Credit to Dean Rubine, Jim Kempf, and Ari Rapkin.
8 #ifndef _LI_RECOGNIZER_INTERNAL_H_
10 #define _LI_RECOGNIZER_INTERNAL_H_
12 #include <hre_internal.h>
15 typedef struct PointList {
19 struct PointList* next;
23 char* file_name; /*The classifier file name.*/
24 sClassifier sc; /*The classifier.*/
25 point_list* ex[MAXSCLASSES]; /*The training examples.*/
26 char* cnames[MAXSCLASSES]; /*The class names.*/
27 point_list* canonex[MAXSCLASSES]; /* Canonicalized versions of the strokes. */
28 point_list* dompts[MAXSCLASSES]; /* Dominant points */
32 /*This structure contains extra fields for instance-specific data.*/
35 /*Instance-specific data.*/
36 u_int li_magic; /*Just to make sure nobody's cheating.*/
37 rClassifier li_rc; /*The character classifier.*/
41 /*Name of the default classifier file.*/
42 #define LI_DEFAULT_CLASSIFIER_FILE "default.cl"
44 /*Classifier file extension.*/
45 #define LI_CLASSIFIER_EXTENSION ".cl"
47 /*Locale supported by recognizer.*/
48 #define LI_SUPPORTED_LOCALE REC_DEFAULT_LOCALE