14 #ifndef TESSERACT_TRAINING_COMMONTRAINING_H__ 15 #define TESSERACT_TRAINING_COMMONTRAINING_H__ 86 ShapeTable** shape_table,
100 const char *feature_name,
int max_samples,
102 FILE* file,
LIST* training_samples);
108 const char *program_feature_type);
122 const char *program_feature_type);
127 BOOL8 KeepInsigProtos,
150 LIST LabeledClassList);
165 BOOL8 CountSigProtos,
166 BOOL8 CountInsigProtos);
170 #endif // TESSERACT_TRAINING_COMMONTRAINING_H__ LABELEDLIST NewLabeledList(const char *Label)
void FreeTrainingSamples(LIST CharList)
FEATURE_DEFS_STRUCT feature_defs
void MergeInsignificantProtos(LIST ProtoList, const char *label, CLUSTERER *Clusterer, CLUSTERCONFIG *Config)
void FreeNormProtoList(LIST CharList)
int NumberOfProtos(LIST ProtoList, BOOL8 CountSigProtos, BOOL8 CountInsigProtos)
void Normalize(float *Values)
MERGE_CLASS_NODE * MERGE_CLASS
LIST RemoveInsignificantProtos(LIST ProtoList, BOOL8 KeepSigProtos, BOOL8 KeepInsigProtos, int N)
MERGE_CLASS FindClass(LIST List, const char *Label)
void ParseArguments(int *argc, char ***argv)
ShapeTable * LoadShapeTable(const STRING &file_prefix)
void CleanUpUnusedData(LIST ProtoList)
void FreeLabeledList(LABELEDLIST LabeledList)
MasterTrainer * LoadTrainingData(int argc, const char *const *argv, bool replication, ShapeTable **shape_table, STRING *file_prefix)
void WriteShapeTable(const STRING &file_prefix, const ShapeTable &shape_table)
CLASS_STRUCT * SetUpForFloat2Int(const UNICHARSET &unicharset, LIST LabeledClassList)
void AddToNormProtosList(LIST *NormProtoList, LIST ProtoList, char *CharName)
void ReadTrainingSamples(const FEATURE_DEFS_STRUCT &feature_defs, const char *feature_name, int max_samples, UNICHARSET *unicharset, FILE *file, LIST *training_samples)
const char * GetNextFilename(int argc, const char *const *argv)
MERGE_CLASS NewLabeledClass(const char *Label)
void FreeLabeledClassList(LIST ClassListList)
struct LABELEDLISTNODE * LABELEDLIST
void WriteTrainingSamples(const FEATURE_DEFS_STRUCT &FeatureDefs, char *Directory, LIST CharList, const char *program_feature_type)
CLUSTERER * SetUpForClustering(const FEATURE_DEFS_STRUCT &FeatureDefs, LABELEDLIST CharSample, const char *program_feature_type)
LABELEDLIST FindList(LIST List, char *Label)