• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* -*-C-*-
2  ********************************************************************************
3  *
4  * File:        heuristic.h  (Formerly heuristic.h)
5  * Description:
6  * Author:       Mark Seaman, SW Productivity
7  * Created:      Fri Oct 16 14:37:00 1987
8  * Modified:     Tue Jul  9 17:14:44 1991 (Mark Seaman) marks@hpgrlt
9  * Language:     C
10  * Package:      N/A
11  * Status:       Reusable Software Component
12  *
13  * (c) Copyright 1987, Hewlett-Packard Company.
14  ** Licensed under the Apache License, Version 2.0 (the "License");
15  ** you may not use this file except in compliance with the License.
16  ** You may obtain a copy of the License at
17  ** http://www.apache.org/licenses/LICENSE-2.0
18  ** Unless required by applicable law or agreed to in writing, software
19  ** distributed under the License is distributed on an "AS IS" BASIS,
20  ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
21  ** See the License for the specific language governing permissions and
22  ** limitations under the License.
23  *
24  *********************************************************************************/
25 #ifndef HEURISTIC_H
26 #define HEURISTIC_H
27 
28 /*----------------------------------------------------------------------
29               I n c l u d e s
30 ----------------------------------------------------------------------*/
31 #include "associate.h"
32 #include "bestfirst.h"
33 #include "seam.h"
34 
35 extern INT_VAR_H(segment_adjust_debug, 0,
36        "Segmentation adjustment debug");
37 extern BOOL_VAR_H(assume_fixed_pitch_char_segment, 0,
38        "include fixed-pitch heuristics in char segmentation");
39 extern BOOL_VAR_H(use_new_state_cost, 0,
40        "use new state cost heuristics for segmentation evaluation");
41 extern double_VAR_H(heuristic_segcost_rating_base, 1.25,
42        "base factor for adding segmentation cost into word rating."
43        "It's a multiplying factor, the larger the value above 1, "
44        "the bigger the effect of segmentation cost.");
45 extern double_VAR_H(heuristic_weight_rating, 1,
46        "weight associated with char rating in combined cost of state");
47 extern double_VAR_H(heuristic_weight_width, 0,
48        "weight associated with width evidence in combined cost of state");
49 extern double_VAR_H(heuristic_weight_seamcut, 0,
50        "weight associated with seam cut in combined cost of state");
51 extern double_VAR_H(heuristic_max_char_wh_ratio, MAX_SQUAT,
52        "max char width-to-height ratio allowed in segmentation");
53 
54 #endif
55