mirror of
https://github.com/hexastack/hexabot
synced 2024-12-01 16:51:43 +00:00
fix: apply nlp threshold
This commit is contained in:
parent
9c7a752b3b
commit
2f31639a5d
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user