am 0b626214: Merge "Optimize the parameters for the typing algorithm"
* commit '0b626214464dbebae028a3ce0c10d4a9992eeb6a': Optimize the parameters for the typing algorithmmain
commit
987fd92dc7
|
@ -27,30 +27,30 @@ const int ScoringParams::MAX_CACHE_DIC_NODE_SIZE = 170;
|
|||
const int ScoringParams::MAX_CACHE_DIC_NODE_SIZE_FOR_SINGLE_POINT = 310;
|
||||
const int ScoringParams::THRESHOLD_SHORT_WORD_LENGTH = 4;
|
||||
|
||||
const float ScoringParams::DISTANCE_WEIGHT_LENGTH = 0.132f;
|
||||
const float ScoringParams::PROXIMITY_COST = 0.095f;
|
||||
const float ScoringParams::FIRST_CHAR_PROXIMITY_COST = 0.102f;
|
||||
const float ScoringParams::FIRST_PROXIMITY_COST = 0.019f;
|
||||
const float ScoringParams::OMISSION_COST = 0.458f;
|
||||
const float ScoringParams::OMISSION_COST_SAME_CHAR = 0.491f;
|
||||
const float ScoringParams::OMISSION_COST_FIRST_CHAR = 0.582f;
|
||||
const float ScoringParams::INSERTION_COST = 0.730f;
|
||||
const float ScoringParams::TERMINAL_INSERTION_COST = 0.93f;
|
||||
const float ScoringParams::INSERTION_COST_SAME_CHAR = 0.586f;
|
||||
const float ScoringParams::INSERTION_COST_PROXIMITY_CHAR = 0.70f;
|
||||
const float ScoringParams::INSERTION_COST_FIRST_CHAR = 0.623f;
|
||||
const float ScoringParams::TRANSPOSITION_COST = 0.526f;
|
||||
const float ScoringParams::SPACE_SUBSTITUTION_COST = 0.319f;
|
||||
const float ScoringParams::ADDITIONAL_PROXIMITY_COST = 0.380f;
|
||||
const float ScoringParams::SUBSTITUTION_COST = 0.383f;
|
||||
const float ScoringParams::COST_NEW_WORD = 0.042f;
|
||||
const float ScoringParams::COST_SECOND_OR_LATER_WORD_FIRST_CHAR_UPPERCASE = 0.25f;
|
||||
const float ScoringParams::DISTANCE_WEIGHT_LANGUAGE = 1.123f;
|
||||
const float ScoringParams::COST_FIRST_LOOKAHEAD = 0.545f;
|
||||
const float ScoringParams::COST_LOOKAHEAD = 0.073f;
|
||||
const float ScoringParams::HAS_PROXIMITY_TERMINAL_COST = 0.093f;
|
||||
const float ScoringParams::HAS_EDIT_CORRECTION_TERMINAL_COST = 0.041f;
|
||||
const float ScoringParams::HAS_MULTI_WORD_TERMINAL_COST = 0.447f;
|
||||
const float ScoringParams::DISTANCE_WEIGHT_LENGTH = 0.1524f;
|
||||
const float ScoringParams::PROXIMITY_COST = 0.0694f;
|
||||
const float ScoringParams::FIRST_CHAR_PROXIMITY_COST = 0.072f;
|
||||
const float ScoringParams::FIRST_PROXIMITY_COST = 0.07788f;
|
||||
const float ScoringParams::OMISSION_COST = 0.4676f;
|
||||
const float ScoringParams::OMISSION_COST_SAME_CHAR = 0.399f;
|
||||
const float ScoringParams::OMISSION_COST_FIRST_CHAR = 0.5256f;
|
||||
const float ScoringParams::INSERTION_COST = 0.7248f;
|
||||
const float ScoringParams::TERMINAL_INSERTION_COST = 0.9828f;
|
||||
const float ScoringParams::INSERTION_COST_SAME_CHAR = 0.5508f;
|
||||
const float ScoringParams::INSERTION_COST_PROXIMITY_CHAR = 0.674f;
|
||||
const float ScoringParams::INSERTION_COST_FIRST_CHAR = 0.639f;
|
||||
const float ScoringParams::TRANSPOSITION_COST = 0.5608f;
|
||||
const float ScoringParams::SPACE_SUBSTITUTION_COST = 0.339f;
|
||||
const float ScoringParams::ADDITIONAL_PROXIMITY_COST = 0.4576f;
|
||||
const float ScoringParams::SUBSTITUTION_COST = 0.3806f;
|
||||
const float ScoringParams::COST_NEW_WORD = 0.0292f;
|
||||
const float ScoringParams::COST_SECOND_OR_LATER_WORD_FIRST_CHAR_UPPERCASE = 0.3224f;
|
||||
const float ScoringParams::DISTANCE_WEIGHT_LANGUAGE = 1.1214f;
|
||||
const float ScoringParams::COST_FIRST_LOOKAHEAD = 0.4786f;
|
||||
const float ScoringParams::COST_LOOKAHEAD = 0.00624f;
|
||||
const float ScoringParams::HAS_PROXIMITY_TERMINAL_COST = 0.06836f;
|
||||
const float ScoringParams::HAS_EDIT_CORRECTION_TERMINAL_COST = 0.0362f;
|
||||
const float ScoringParams::HAS_MULTI_WORD_TERMINAL_COST = 0.4182f;
|
||||
const float ScoringParams::TYPING_BASE_OUTPUT_SCORE = 1.0f;
|
||||
const float ScoringParams::TYPING_MAX_OUTPUT_SCORE_PER_INPUT = 0.1f;
|
||||
const float ScoringParams::NORMALIZED_SPATIAL_DISTANCE_THRESHOLD_FOR_EDIT = 0.045f;
|
||||
|
|
Loading…
Reference in New Issue