mirror of
https://github.com/hexastack/hexabot
synced 2024-12-02 00:54:56 +00:00
Merge pull request #387 from Hexastack/fix/nlp-threshold
fix: apply nlp threshold
This commit is contained in:
commit
693579c6bc
@ -270,7 +270,7 @@ export class ChatService {
|
|||||||
if (event.getText() && !event.getNLP()) {
|
if (event.getText() && !event.getNLP()) {
|
||||||
try {
|
try {
|
||||||
const helper = await this.helperService.getDefaultNluHelper();
|
const helper = await this.helperService.getDefaultNluHelper();
|
||||||
const nlp = await helper.predict(event.getText());
|
const nlp = await helper.predict(event.getText(), true);
|
||||||
event.setNLP(nlp);
|
event.setNLP(nlp);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
this.logger.error('Unable to perform NLP parse', err);
|
this.logger.error('Unable to perform NLP parse', err);
|
||||||
|
Loading…
Reference in New Issue
Block a user