fix(core.gbapp): Logging improvements.
This commit is contained in:
parent
2083755cd3
commit
b2159b0030
1 changed files with 3 additions and 2 deletions
|
@ -498,9 +498,10 @@ export class GBConversationalService {
|
||||||
}
|
}
|
||||||
|
|
||||||
let nlpActive = false;
|
let nlpActive = false;
|
||||||
|
let score = 0;
|
||||||
|
|
||||||
Object.keys(nlp.intents).forEach(name => {
|
Object.keys(nlp.intents).forEach(name => {
|
||||||
const score = nlp.intents[name].score;
|
score = nlp.intents[name].score;
|
||||||
if (score > min.instance.nlpScore) {
|
if (score > min.instance.nlpScore) {
|
||||||
nlpActive = true;
|
nlpActive = true;
|
||||||
}
|
}
|
||||||
|
@ -515,7 +516,7 @@ export class GBConversationalService {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
GBLog.info(`NLP called: ${intent}, entities: ${nlp.entities}`);
|
GBLog.info(`NLP called: ${intent}, entities: ${nlp.entities.length}, score: ${score} > required (nlpScore): ${min.instance.nlpScore}`);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
step.activeDialog.state.options.entities = nlp.entities;
|
step.activeDialog.state.options.entities = nlp.entities;
|
||||||
|
|
Loading…
Add table
Reference in a new issue