Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion v2/document.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func computeQ(threshold float64) int {
// 20 times. This function returns the minimum token length, or returning
// a value of 1 if necessary (since a threshold level below 50% would generate
// a run of 0-length, which is meaningless.)
if threshold == 1.0 {
if threshold > 0.9 {
return 10 // avoid divide by 0
}

Expand Down