fix: apply nlp threshold

This commit is contained in:
Mohamed Marrouchi 2024-11-28 17:54:52 +01:00
parent 9c7a752b3b
commit 2f31639a5d

View File

@ -270,7 +270,7 @@ export class ChatService {
if (event.getText() && !event.getNLP()) {
try {
const helper = await this.helperService.getDefaultNluHelper();
const nlp = await helper.predict(event.getText());
const nlp = await helper.predict(event.getText(), true);
event.setNLP(nlp);
} catch (err) {
this.logger.error('Unable to perform NLP parse', err);