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
3aecbd5a
Commit
3aecbd5a
authored
1 year ago
by
Aleksandras Kostarevas
Browse files
Options
Downloads
Patches
Plain Diff
Fix issue where mOriginatesFromTransformerLM gets lost
parent
1d4b0756
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!7
Merge model-metadata to master
,
!6
Add autocorrect threshold to model-metadata branch
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
java/src/org/futo/inputmethod/latin/Suggest.java
+5
-1
5 additions, 1 deletion
java/src/org/futo/inputmethod/latin/Suggest.java
with
5 additions
and
1 deletion
java/src/org/futo/inputmethod/latin/Suggest.java
+
5
−
1
View file @
3aecbd5a
...
...
@@ -440,9 +440,13 @@ public final class Suggest {
for
(
int
i
=
quotesToAppend
-
1
;
i
>=
0
;
--
i
)
{
sb
.
appendCodePoint
(
Constants
.
CODE_SINGLE_QUOTE
);
}
return
new
SuggestedWordInfo
(
sb
.
toString
(),
wordInfo
.
mPrevWordsContext
,
SuggestedWordInfo
result
=
new
SuggestedWordInfo
(
sb
.
toString
(),
wordInfo
.
mPrevWordsContext
,
wordInfo
.
mScore
,
wordInfo
.
mKindAndFlags
,
wordInfo
.
mSourceDict
,
wordInfo
.
mIndexOfTouchPointOfSecondWord
,
wordInfo
.
mAutoCommitFirstWordConfidence
);
result
.
mOriginatesFromTransformerLM
=
wordInfo
.
mOriginatesFromTransformerLM
;
return
result
;
}
}
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