00001 /* -*-C-*- 00002 ******************************************************************************** 00003 * 00004 * File: permdawg.h (Formerly permdawg.h) 00005 * Description: 00006 * Author: Mark Seaman, SW Productivity 00007 * Created: Fri Oct 16 14:37:00 1987 00008 * Modified: Mon May 20 16:45:29 1991 (Mark Seaman) marks@hpgrlt 00009 * Language: C 00010 * Package: N/A 00011 * Status: Reusable Software Component 00012 * 00013 * (c) Copyright 1987, Hewlett-Packard Company. 00014 ** Licensed under the Apache License, Version 2.0 (the "License"); 00015 ** you may not use this file except in compliance with the License. 00016 ** You may obtain a copy of the License at 00017 ** http://www.apache.org/licenses/LICENSE-2.0 00018 ** Unless required by applicable law or agreed to in writing, software 00019 ** distributed under the License is distributed on an "AS IS" BASIS, 00020 ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00021 ** See the License for the specific language governing permissions and 00022 ** limitations under the License. 00023 * 00024 *********************************************************************************/ 00025 #ifndef PERMDAWG_H 00026 #define PERMDAWG_H 00027 00028 /*---------------------------------------------------------------------- 00029 I n c l u d e s 00030 ----------------------------------------------------------------------*/ 00031 #include "dawg.h" 00032 #include "choices.h" 00033 #include "choicearr.h" 00034 #include "varable.h" 00035 #include "permute.h" 00036 00037 /*--------------------------------------------------------------------- 00038 V a r i a b l e s 00039 ----------------------------------------------------------------------*/ 00040 extern BOOL_VAR_H(segment_dawg_debug, 0, "Debug mode for word segmentation"); 00041 00042 extern double_VAR_H(segment_penalty_dict_case_bad, 1.3125, 00043 "Default score multiplier for word matches, which may have case or " 00044 "punctuation issues (lower is better)."); 00045 00046 extern double_VAR_H(segment_penalty_dict_case_ok, 1.1, 00047 "Score multiplier for word matches that have good case " 00048 "(lower is better)."); 00049 00050 extern double_VAR_H(segment_penalty_dict_frequent_word, 1.0, 00051 "Score multiplier for word matches which have good case and are " 00052 "frequent in the given language (lower is better)."); 00053 00054 00055 /*---------------------------------------------------------------------- 00056 M a c r o s 00057 ----------------------------------------------------------------------*/ 00058 00059 /*---------------------------------------------------------------------- 00060 Public Function Prototypes 00061 ----------------------------------------------------------------------*/ 00062 00063 #endif