00001
00020 #ifndef TESSBOX_H
00021 #define TESSBOX_H
00022
00023 #include "ratngs.h"
00024 #include "notdll.h"
00025
00026 WERD_CHOICE *tess_segment_pass1(
00027 WERD *word,
00028 DENORM *denorm,
00029 POLY_MATCHER matcher,
00030 WERD_CHOICE *&raw_choice,
00031 BLOB_CHOICE_LIST_CLIST *blob_choices,
00032 WERD *&outword
00033 );
00034 WERD_CHOICE *tess_segment_pass2(
00035 WERD *word,
00036 DENORM *denorm,
00037 POLY_MATCHER matcher,
00038 WERD_CHOICE *&raw_choice,
00039 BLOB_CHOICE_LIST_CLIST *blob_choices,
00040 WERD *&outword
00041 );
00042
00043 WERD_CHOICE *correct_segment_pass2(WERD *word,
00044 DENORM *denorm,
00045 POLY_MATCHER matcher,
00046 POLY_TESTER tester,
00047 WERD_CHOICE *&raw_choice,
00048 BLOB_CHOICE_LIST_CLIST *blob_choices,
00049 WERD *&outword
00050 );
00051 WERD_CHOICE *test_segment_pass2(
00052 WERD *word,
00053 DENORM *denorm,
00054 POLY_MATCHER matcher,
00055 POLY_TESTER tester,
00056 WERD_CHOICE *&raw_choice,
00057 BLOB_CHOICE_LIST_CLIST *blob_choices,
00058 WERD *&outword
00059 );
00060 BOOL8 tess_acceptable_word(
00061 WERD_CHOICE *word_choice,
00062 WERD_CHOICE *raw_choice
00063 );
00064 BOOL8 tess_adaptable_word(
00065 WERD *word,
00066 WERD_CHOICE *word_choice,
00067 WERD_CHOICE *raw_choice
00068 );
00069 void tess_cn_matcher(
00070 PBLOB *pblob,
00071 PBLOB *blob,
00072 PBLOB *nblob,
00073 WERD *word,
00074 DENORM *denorm,
00075 BLOB_CHOICE_LIST &ratings
00076 );
00077 void tess_bn_matcher(
00078 PBLOB *pblob,
00079 PBLOB *blob,
00080 PBLOB *nblob,
00081 WERD *word,
00082 DENORM *denorm,
00083 BLOB_CHOICE_LIST &ratings
00084 );
00085 void tess_default_matcher(
00086 PBLOB *pblob,
00087 PBLOB *blob,
00088 PBLOB *nblob,
00089 WERD *word,
00090 DENORM *denorm,
00091 BLOB_CHOICE_LIST &ratings
00092 );
00093 void tess_training_tester(
00094 PBLOB *blob,
00095 DENORM *denorm,
00096 BOOL8 correct,
00097 char *text,
00098 INT32 count,
00099 BLOB_CHOICE_LIST *ratings
00100 );
00101 void tess_adapter(
00102 WERD *word,
00103 DENORM *denorm,
00104 const char *string,
00105 const char *raw_string,
00106 const char *rejmap);
00107 void tess_add_doc_word(
00108 WERD_CHOICE *word_choice
00109 );
00110 #endif