00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #ifndef HEURISTIC_H
00026 #define HEURISTIC_H
00027
00028
00029
00030
00031 #include "associate.h"
00032 #include "bestfirst.h"
00033 #include "seam.h"
00034
00035 extern INT_VAR_H(segment_adjust_debug, 0,
00036 "Segmentation adjustment debug");
00037 extern BOOL_VAR_H(assume_fixed_pitch_char_segment, 0,
00038 "include fixed-pitch heuristics in char segmentation");
00039 extern BOOL_VAR_H(use_new_state_cost, 0,
00040 "use new state cost heuristics for segmentation evaluation");
00041 extern double_VAR_H(heuristic_segcost_rating_base, 1.25,
00042 "base factor for adding segmentation cost into word rating."
00043 "It's a multiplying factor, the larger the value above 1, "
00044 "the bigger the effect of segmentation cost.");
00045 extern double_VAR_H(heuristic_weight_rating, 1,
00046 "weight associated with char rating in combined cost of state");
00047 extern double_VAR_H(heuristic_weight_width, 0,
00048 "weight associated with width evidence in combined cost of state");
00049 extern double_VAR_H(heuristic_weight_seamcut, 0,
00050 "weight associated with seam cut in combined cost of state");
00051 extern double_VAR_H(heuristic_max_char_wh_ratio, MAX_SQUAT,
00052 "max char width-to-height ratio allowed in segmentation");
00053
00054 #endif