Skip to content

Commit

Permalink
fix n_to_last_index
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasassi committed Oct 6, 2019
1 parent 35883f9 commit 463a09c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion document/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ func lastPunct(tokens []string, index int) int {
continue
}
if isPunct(token) {
return len(tokens) - index
return i - index
}
}
return -1
Expand Down

0 comments on commit 463a09c

Please sign in to comment.