36 #define MAX_PERM_LENGTH 128
46 "Turn on word script consistency permuter");
49 "Turn on fixed-length phrasebook search permuter");
52 "incorporate segmentation cost in word rating?");
55 "Score multipler for script consistency within a word. "
56 "Being a 'reward' factor, it should be <= 1. "
57 "Smaller value implies bigger reward.");
60 "Turn on character type (property) consistency permuter");
62 "Score multipler for char type consistency within a word. ");
65 "Score multipler for ngram permuter's best choice"
66 " (only used in the Han script path).");
69 "Maximum number of different character choices to consider"
70 " during permutation. This limit is especially useful when"
71 " user patterns are specified, since overly generic patterns"
72 " can result in dawg search exploring an overly large number"
81 float rating,
float *new_rating,
float *adjust_factor);
84 const char *second_char,
85 const char *third_char,
86 const char *prev_char,
87 const char *next_char,
88 const char *next_next_char);
122 void AddPreference(
int start_pos,
char* pos_str,
float weight);
134 static const char kPosFree =
'.';
143 bool allow_collision_;
144 float adjust_factor_;
#define BOOL_VAR_H(name, val, comment)
void set_adjust_factor(float factor)
const char * choose_il1(const char *first_char, const char *second_char, const char *third_char, const char *prev_char, const char *next_char, const char *next_next_char)
int max_permuter_attempts
void set_allow_collision(bool flag)
bool permute_fixed_length_dawg
WERD_CHOICE * GetPermutedWord(float *certainties, float *adjust_factor)
void Init(const BLOB_CHOICE_LIST_VECTOR &char_choices, const UNICHARSET &unicharset, float default_bias, bool debug)
double segment_reward_chartype
void AddPreference(int start_pos, char *pos_str, float weight)
double segment_reward_script
bool permute_chartype_word
#define double_VAR_H(name, val, comment)
void adjust_non_word(const char *word, const char *word_lengths, float rating, float *new_rating, float *adjust_factor)
double segment_reward_ngram_best_choice
bool segment_segcost_rating
void set_debug(bool debug)
#define INT_VAR_H(name, val, comment)
bool position_marked(int pos)