am 8da0c932: Reduce MAX_NORM_DISTANCE_FOR_EDIT in typing model after recent logic improvements

* commit '8da0c932925f605b9dd815387753dfab19beb873':
  Reduce MAX_NORM_DISTANCE_FOR_EDIT in typing model after recent logic improvements
main
Tom Ouyang 2013-04-29 23:00:34 -07:00 committed by Android Git Automerger
commit a0a2b4c2fc
3 changed files with 3 additions and 3 deletions

View File

@ -48,5 +48,5 @@ const float ScoringParams::HAS_EDIT_CORRECTION_TERMINAL_COST = 0.038f;
const float ScoringParams::HAS_MULTI_WORD_TERMINAL_COST = 0.444f; const float ScoringParams::HAS_MULTI_WORD_TERMINAL_COST = 0.444f;
const float ScoringParams::TYPING_BASE_OUTPUT_SCORE = 1.0f; const float ScoringParams::TYPING_BASE_OUTPUT_SCORE = 1.0f;
const float ScoringParams::TYPING_MAX_OUTPUT_SCORE_PER_INPUT = 0.1f; const float ScoringParams::TYPING_MAX_OUTPUT_SCORE_PER_INPUT = 0.1f;
const float ScoringParams::MAX_NORM_DISTANCE_FOR_EDIT = 0.1f; const float ScoringParams::NORMALIZED_SPATIAL_DISTANCE_THRESHOLD_FOR_EDIT = 0.06f;
} // namespace latinime } // namespace latinime

View File

@ -57,7 +57,7 @@ class ScoringParams {
static const float HAS_MULTI_WORD_TERMINAL_COST; static const float HAS_MULTI_WORD_TERMINAL_COST;
static const float TYPING_BASE_OUTPUT_SCORE; static const float TYPING_BASE_OUTPUT_SCORE;
static const float TYPING_MAX_OUTPUT_SCORE_PER_INPUT; static const float TYPING_MAX_OUTPUT_SCORE_PER_INPUT;
static const float MAX_NORM_DISTANCE_FOR_EDIT; static const float NORMALIZED_SPATIAL_DISTANCE_THRESHOLD_FOR_EDIT;
private: private:
DISALLOW_IMPLICIT_CONSTRUCTORS(ScoringParams); DISALLOW_IMPLICIT_CONSTRUCTORS(ScoringParams);

View File

@ -39,7 +39,7 @@ class TypingTraversal : public Traversal {
AK_FORCE_INLINE bool allowsErrorCorrections(const DicNode *const dicNode) const { AK_FORCE_INLINE bool allowsErrorCorrections(const DicNode *const dicNode) const {
return dicNode->getNormalizedSpatialDistance() return dicNode->getNormalizedSpatialDistance()
< ScoringParams::MAX_NORM_DISTANCE_FOR_EDIT; < ScoringParams::NORMALIZED_SPATIAL_DISTANCE_THRESHOLD_FOR_EDIT;
} }
AK_FORCE_INLINE bool isOmission(const DicTraverseSession *const traverseSession, AK_FORCE_INLINE bool isOmission(const DicTraverseSession *const traverseSession,