Loading native/jni/src/suggest/policyimpl/typing/scoring_params.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -52,8 +52,8 @@ const float ScoringParams::SUBSTITUTION_COST = 0.3806f; const float ScoringParams::COST_NEW_WORD = 0.0314f; 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.4836f; const float ScoringParams::COST_LOOKAHEAD = 0.00624f; const float ScoringParams::COST_FIRST_COMPLETION = 0.4836f; const float ScoringParams::COST_COMPLETION = 0.00624f; const float ScoringParams::HAS_PROXIMITY_TERMINAL_COST = 0.0683f; const float ScoringParams::HAS_EDIT_CORRECTION_TERMINAL_COST = 0.0362f; const float ScoringParams::HAS_MULTI_WORD_TERMINAL_COST = 0.4182f; Loading native/jni/src/suggest/policyimpl/typing/scoring_params.h +2 −2 Original line number Diff line number Diff line Loading @@ -59,8 +59,8 @@ class ScoringParams { static const float COST_NEW_WORD; static const float COST_SECOND_OR_LATER_WORD_FIRST_CHAR_UPPERCASE; static const float DISTANCE_WEIGHT_LANGUAGE; static const float COST_FIRST_LOOKAHEAD; static const float COST_LOOKAHEAD; static const float COST_FIRST_COMPLETION; static const float COST_COMPLETION; static const float HAS_PROXIMITY_TERMINAL_COST; static const float HAS_EDIT_CORRECTION_TERMINAL_COST; static const float HAS_MULTI_WORD_TERMINAL_COST; Loading native/jni/src/suggest/policyimpl/typing/typing_weighting.h +2 −2 Original line number Diff line number Diff line Loading @@ -166,8 +166,8 @@ class TypingWeighting : public Weighting { const bool firstCompletion = dicNode->getInputIndex(0) == traverseSession->getInputSize(); // TODO: Change the cost for the first completion for the gesture? const float cost = firstCompletion ? ScoringParams::COST_FIRST_LOOKAHEAD : ScoringParams::COST_LOOKAHEAD; const float cost = firstCompletion ? ScoringParams::COST_FIRST_COMPLETION : ScoringParams::COST_COMPLETION; return cost; } Loading Loading
native/jni/src/suggest/policyimpl/typing/scoring_params.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -52,8 +52,8 @@ const float ScoringParams::SUBSTITUTION_COST = 0.3806f; const float ScoringParams::COST_NEW_WORD = 0.0314f; 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.4836f; const float ScoringParams::COST_LOOKAHEAD = 0.00624f; const float ScoringParams::COST_FIRST_COMPLETION = 0.4836f; const float ScoringParams::COST_COMPLETION = 0.00624f; const float ScoringParams::HAS_PROXIMITY_TERMINAL_COST = 0.0683f; const float ScoringParams::HAS_EDIT_CORRECTION_TERMINAL_COST = 0.0362f; const float ScoringParams::HAS_MULTI_WORD_TERMINAL_COST = 0.4182f; Loading
native/jni/src/suggest/policyimpl/typing/scoring_params.h +2 −2 Original line number Diff line number Diff line Loading @@ -59,8 +59,8 @@ class ScoringParams { static const float COST_NEW_WORD; static const float COST_SECOND_OR_LATER_WORD_FIRST_CHAR_UPPERCASE; static const float DISTANCE_WEIGHT_LANGUAGE; static const float COST_FIRST_LOOKAHEAD; static const float COST_LOOKAHEAD; static const float COST_FIRST_COMPLETION; static const float COST_COMPLETION; static const float HAS_PROXIMITY_TERMINAL_COST; static const float HAS_EDIT_CORRECTION_TERMINAL_COST; static const float HAS_MULTI_WORD_TERMINAL_COST; Loading
native/jni/src/suggest/policyimpl/typing/typing_weighting.h +2 −2 Original line number Diff line number Diff line Loading @@ -166,8 +166,8 @@ class TypingWeighting : public Weighting { const bool firstCompletion = dicNode->getInputIndex(0) == traverseSession->getInputSize(); // TODO: Change the cost for the first completion for the gesture? const float cost = firstCompletion ? ScoringParams::COST_FIRST_LOOKAHEAD : ScoringParams::COST_LOOKAHEAD; const float cost = firstCompletion ? ScoringParams::COST_FIRST_COMPLETION : ScoringParams::COST_COMPLETION; return cost; } Loading