fix: remove extra penalty factor validation

This commit is contained in:
MohamedAliBouhaouala 2025-04-28 17:20:25 +01:00
parent 384e777fa4
commit 40c1349a3c

View File

@ -219,10 +219,6 @@ export class BlockService extends BaseService<
const nluPenaltyFactor: number =
await this.getDefaultNluPenaltyFactor();
if (nluPenaltyFactor < 0 || nluPenaltyFactor > 1) {
throw new Error('Penalty Factor must be between 0 and 1.');
}
// Proceed with matching the best NLP block
if (matchesWithPatterns.length > 0) {
block = (await this.matchBestNLP(