Fix autocompletion lookahead handling
Bug: 8689370 Change-Id: I056b1788764bd5c4d8ad9da86e790562d2781f06main
parent
f595a0626d
commit
14aa8f1d32
|
@ -229,7 +229,7 @@ static inline void profile(const CorrectionType correctionType, DicNode *const n
|
|||
case CT_MATCH:
|
||||
return 1;
|
||||
case CT_COMPLETION:
|
||||
return 0;
|
||||
return 1;
|
||||
case CT_TERMINAL:
|
||||
return 0;
|
||||
case CT_NEW_WORD_SPACE_SUBSTITUTION:
|
||||
|
|
|
@ -41,8 +41,8 @@ const float ScoringParams::SUBSTITUTION_COST = 0.363f;
|
|||
const float ScoringParams::COST_NEW_WORD = 0.024f;
|
||||
const float ScoringParams::COST_NEW_WORD_CAPITALIZED = 0.174f;
|
||||
const float ScoringParams::DISTANCE_WEIGHT_LANGUAGE = 1.123f;
|
||||
const float ScoringParams::COST_FIRST_LOOKAHEAD = 0.462f;
|
||||
const float ScoringParams::COST_LOOKAHEAD = 0.092f;
|
||||
const float ScoringParams::COST_FIRST_LOOKAHEAD = 0.545f;
|
||||
const float ScoringParams::COST_LOOKAHEAD = 0.073f;
|
||||
const float ScoringParams::HAS_PROXIMITY_TERMINAL_COST = 0.126f;
|
||||
const float ScoringParams::HAS_EDIT_CORRECTION_TERMINAL_COST = 0.056f;
|
||||
const float ScoringParams::HAS_MULTI_WORD_TERMINAL_COST = 0.536f;
|
||||
|
|
Loading…
Reference in New Issue