Substitute macros in text to classify
This commit is contained in:
parent
12eabd167d
commit
5e7c214c89
|
@ -972,8 +972,8 @@ function sampleClassifyText(text) {
|
||||||
return text;
|
return text;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Remove asterisks and quotes
|
// Replace macros, remove asterisks and quotes
|
||||||
let result = text.replace(/[*"]/g, '');
|
let result = substituteParams(text).replace(/[*"]/g, '');
|
||||||
|
|
||||||
const SAMPLE_THRESHOLD = 500;
|
const SAMPLE_THRESHOLD = 500;
|
||||||
const HALF_SAMPLE_THRESHOLD = SAMPLE_THRESHOLD / 2;
|
const HALF_SAMPLE_THRESHOLD = SAMPLE_THRESHOLD / 2;
|
||||||
|
|
Loading…
Reference in New Issue