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
090c3819
Commit
090c3819
authored
10 years ago
by
Keisuke Kuroyanagi
Browse files
Options
Downloads
Patches
Plain Diff
Fix: Personalized dicts suggest invalid words with v403.
Bug: 14425059 Change-Id: I45ae00069dd3b7c461dd9a1f3558b96af0a1c975
parent
ade5ad1d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
native/jni/src/suggest/core/dicnode/dic_node_utils.cpp
+3
-2
3 additions, 2 deletions
native/jni/src/suggest/core/dicnode/dic_node_utils.cpp
with
3 additions
and
2 deletions
native/jni/src/suggest/core/dicnode/dic_node_utils.cpp
+
3
−
2
View file @
090c3819
...
...
@@ -74,8 +74,9 @@ namespace latinime {
}
const
WordAttributes
wordAttributes
=
dictionaryStructurePolicy
->
getWordAttributesInContext
(
dicNode
->
getPrevWordIds
(),
dicNode
->
getWordId
(),
multiBigramMap
);
if
(
dicNode
->
hasMultipleWords
()
&&
(
wordAttributes
.
isBlacklisted
()
||
wordAttributes
.
isNotAWord
()))
{
if
(
wordAttributes
.
getProbability
()
==
NOT_A_PROBABILITY
||
(
dicNode
->
hasMultipleWords
()
&&
(
wordAttributes
.
isBlacklisted
()
||
wordAttributes
.
isNotAWord
())))
{
return
static_cast
<
float
>
(
MAX_VALUE_FOR_WEIGHTING
);
}
// TODO: This equation to calculate the improbability looks unreasonable. Investigate this.
...
...
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