Skip to content

Commit

Permalink
change(web): pushWhitespaceToTail tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
jahorton committed Sep 8, 2022
1 parent 3aed0bf commit 75e0b27
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions common/web/lm-worker/src/correction/context-tracker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,8 @@ namespace correction {
// Will be needed for phrase-level correction/prediction.
if(transformDistribution) {
whitespaceToken.transformDistributions = [transformDistribution];
} else {
whitespaceToken.transformDistributions = [];
}

whitespaceToken.raw = null;
Expand Down

0 comments on commit 75e0b27

Please sign in to comment.