Increase classify sampling window; 300=>500 chars

This commit is contained in:
Cohee 2023-10-23 02:14:29 +03:00
parent 63b34d9851
commit 635df947c5
1 changed files with 1 additions and 1 deletions

View File

@ -764,7 +764,7 @@ function sampleClassifyText(text) {
// Remove asterisks and quotes
let result = text.replace(/[\*\"]/g, '');
const SAMPLE_THRESHOLD = 300;
const SAMPLE_THRESHOLD = 500;
const HALF_SAMPLE_THRESHOLD = SAMPLE_THRESHOLD / 2;
if (text.length < SAMPLE_THRESHOLD) {