Skip to content

Commit

Permalink
Fix suspicious non-split logic
Browse files Browse the repository at this point in the history
  • Loading branch information
lgessler committed Jun 22, 2022
1 parent 348f5ed commit 182568c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/new_segmenter.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export function Document(props) {
}
let tokenAreaClassName;
const isGold = props.quality && props.quality === "gold"
if (props.index > 0 && props.probas && props.probas.B > SSPLIT_SUSPICIOUS_PROBABILITY_THRESHOLD && !isGold) {
if (props.index > 0 && props.probas && props.probas.O < SSPLIT_SUSPICIOUS_PROBABILITY_THRESHOLD && !isGold) {
tokenAreaClassName = "token-area token-area-maybe-split"
} else {
tokenAreaClassName = "token-area"
Expand Down

0 comments on commit 182568c

Please sign in to comment.