am 14aa8f1d: Fix autocompletion lookahead handling

* commit '14aa8f1d32ec70811af0b861c135c7ecd0de92a2':
  Fix autocompletion lookahead handling
main
Tom Ouyang 2013-04-22 20:42:06 -07:00 committed by Android Git Automerger
commit 56fab87b52
2 changed files with 3 additions and 3 deletions

View File

@ -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:

View File

@ -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;