am 56fab87b: am 14aa8f1d: Fix autocompletion lookahead handling

* commit '56fab87b522af2bab1e1424b6980ac47d053af57':
  Fix autocompletion lookahead handling
main
Tom Ouyang 2013-05-15 10:58:37 -07:00 committed by Android Git Automerger
commit 5d8638e41c
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: case CT_MATCH:
return 1; return 1;
case CT_COMPLETION: case CT_COMPLETION:
return 0; return 1;
case CT_TERMINAL: case CT_TERMINAL:
return 0; return 0;
case CT_NEW_WORD_SPACE_SUBSTITUTION: 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 = 0.024f;
const float ScoringParams::COST_NEW_WORD_CAPITALIZED = 0.174f; const float ScoringParams::COST_NEW_WORD_CAPITALIZED = 0.174f;
const float ScoringParams::DISTANCE_WEIGHT_LANGUAGE = 1.123f; const float ScoringParams::DISTANCE_WEIGHT_LANGUAGE = 1.123f;
const float ScoringParams::COST_FIRST_LOOKAHEAD = 0.462f; const float ScoringParams::COST_FIRST_LOOKAHEAD = 0.545f;
const float ScoringParams::COST_LOOKAHEAD = 0.092f; const float ScoringParams::COST_LOOKAHEAD = 0.073f;
const float ScoringParams::HAS_PROXIMITY_TERMINAL_COST = 0.126f; const float ScoringParams::HAS_PROXIMITY_TERMINAL_COST = 0.126f;
const float ScoringParams::HAS_EDIT_CORRECTION_TERMINAL_COST = 0.056f; const float ScoringParams::HAS_EDIT_CORRECTION_TERMINAL_COST = 0.056f;
const float ScoringParams::HAS_MULTI_WORD_TERMINAL_COST = 0.536f; const float ScoringParams::HAS_MULTI_WORD_TERMINAL_COST = 0.536f;