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
eb5ed752
Commit
eb5ed752
authored
1 year ago
by
Aleksandras Kostarevas
Browse files
Options
Downloads
Patches
Plain Diff
Update
parent
001f1eb4
No related branches found
No related tags found
1 merge request
!7
Merge model-metadata to master
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
java/src/org/futo/inputmethod/latin/xlm/LanguageModelFacilitator.kt
+2
-2
2 additions, 2 deletions
...rg/futo/inputmethod/latin/xlm/LanguageModelFacilitator.kt
with
2 additions
and
2 deletions
java/src/org/futo/inputmethod/latin/xlm/LanguageModelFacilitator.kt
+
2
−
2
View file @
eb5ed752
...
...
@@ -286,8 +286,8 @@ public class LanguageModelFacilitator(
ngramContext
:
NgramContext
,
timeStampInSeconds
:
Long
,
blockPotentiallyOffensive
:
Boolean
,
importance
:
Int
)
{
importance
:
Int
)
{
val
wordCtx
=
ngramContext
.
fullContext
.
trim
().
lines
().
last
()
var
committedNgramCtx
=
ngramContext
.
extractPrevWordsContext
().
replace
(
NgramContext
.
BEGINNING_OF_SENTENCE_TAG
,
" "
).
trim
();
if
(
committedNgramCtx
.
isEmpty
())
{
...
...
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