Skip to content

fix: improve sil.km.gcc wordbreaking - #355

Open
jahorton wants to merge 2 commits into
masterfrom
fix/khmer-gcc-wordbreaker
Open

jahorton wants to merge 2 commits into
masterfrom
fix/khmer-gcc-wordbreaker

Conversation

@jahorton

Copy link
Copy Markdown
Contributor

Relates-to: keymanapp/keyman#16587

This should solve the issue where predictions break after multiple whitespaces.

@darcywong00

Copy link
Copy Markdown
Contributor

Could you add a short summary on what the wordbreaking fix is?

@darcywong00 darcywong00 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm


// If a new word should be starting at the current caret position,
// create an empty '' token to indicate this.
let tailToken = finalizedTokens[tokens.length - 1];

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just noticed in #356 you used finalizedTokens.length instead of tokens.length

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants