00001 /****************************************************************************** 00002 ** Filename: badwords.h 00003 ** Purpose: Routines to keep the bad words in sorted order. 00004 ** Author: Dan Johnson 00005 ** History: Thu Apr 25 09:06:48 1991, DSJ, Created. 00006 ** 00007 ** (c) Copyright Hewlett-Packard Company, 1988. 00008 ** Licensed under the Apache License, Version 2.0 (the "License"); 00009 ** you may not use this file except in compliance with the License. 00010 ** You may obtain a copy of the License at 00011 ** http://www.apache.org/licenses/LICENSE-2.0 00012 ** Unless required by applicable law or agreed to in writing, software 00013 ** distributed under the License is distributed on an "AS IS" BASIS, 00014 ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00015 ** See the License for the specific language governing permissions and 00016 ** limitations under the License. 00017 ******************************************************************************/ 00018 #ifndef __BADWERDS__ 00019 #define __BADWERDS__ 00020 00024 #include <stdio.h> 00025 00029 void PrintBadWords(FILE *File); 00030 00031 void SaveBadWord(const char *Word, FLOAT32 Certainty); 00032 extern BOOL_VAR_H (tessedit_save_stats, FALSE, "Save final recognition statistics"); 00033 00034 /* 00035 #if defined(__STDC__) || defined(__cplusplus) 00036 # define _ARGS(s) s 00037 #else 00038 # define _ARGS(s) () 00039 #endif*/ 00040 00041 /* badwords.c 00042 void PrintBadWords 00043 _ARGS((FILE *File)); 00044 00045 void SaveBadWord 00046 _ARGS((char *Word, 00047 FLOAT32 Certainty)); 00048 00049 #undef _ARGS 00050 */ 00051 #endif