Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LatinIME
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
keyboard
LatinIME
Commits
14aa8f1d
Commit
14aa8f1d
authored
11 years ago
by
Tom Ouyang
Browse files
Options
Downloads
Patches
Plain Diff
Fix autocompletion lookahead handling
Bug: 8689370 Change-Id: I056b1788764bd5c4d8ad9da86e790562d2781f06
parent
f595a062
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
native/jni/src/suggest/core/policy/weighting.cpp
+1
-1
1 addition, 1 deletion
native/jni/src/suggest/core/policy/weighting.cpp
native/jni/src/suggest/policyimpl/typing/scoring_params.cpp
+2
-2
2 additions, 2 deletions
native/jni/src/suggest/policyimpl/typing/scoring_params.cpp
with
3 additions
and
3 deletions
native/jni/src/suggest/core/policy/weighting.cpp
+
1
−
1
View file @
14aa8f1d
...
...
@@ -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
:
...
...
This diff is collapsed.
Click to expand it.
native/jni/src/suggest/policyimpl/typing/scoring_params.cpp
+
2
−
2
View file @
14aa8f1d
...
...
@@ -41,8 +41,8 @@ const float ScoringParams::SUBSTITUTION_COST = 0.363f;
const
float
ScoringParams
::
COST_NEW_WORD
=
0.024
f
;
const
float
ScoringParams
::
COST_NEW_WORD_CAPITALIZED
=
0.174
f
;
const
float
ScoringParams
::
DISTANCE_WEIGHT_LANGUAGE
=
1.123
f
;
const
float
ScoringParams
::
COST_FIRST_LOOKAHEAD
=
0.
462
f
;
const
float
ScoringParams
::
COST_LOOKAHEAD
=
0.0
92
f
;
const
float
ScoringParams
::
COST_FIRST_LOOKAHEAD
=
0.
545
f
;
const
float
ScoringParams
::
COST_LOOKAHEAD
=
0.0
73
f
;
const
float
ScoringParams
::
HAS_PROXIMITY_TERMINAL_COST
=
0.126
f
;
const
float
ScoringParams
::
HAS_EDIT_CORRECTION_TERMINAL_COST
=
0.056
f
;
const
float
ScoringParams
::
HAS_MULTI_WORD_TERMINAL_COST
=
0.536
f
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment