Skip to content

Commit 3029aae

Browse files
committed
including 'None' in the intents returned by LUIS
1 parent 01fd40b commit 3029aae

File tree

3 files changed

+1
-3
lines changed

3 files changed

+1
-3
lines changed

lib/intentScorer.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ var IntentScorer = (function () {
1919
Promise.all(promises)
2020
.then(function (intents) {
2121
var sortedIntents = _.sortBy(_.compact(intents), 'score').reverse();
22-
sortedIntents = _.filter(sortedIntents, function (intent) { return intent.intent != 'None'; });
2322
resolve(sortedIntents);
2423
})
2524
.catch(reject);

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "bot-graph-dialog",
3-
"version": "3.4.5",
3+
"version": "3.4.6",
44
"description": "bot graph dialog",
55
"main": "index.js",
66
"scripts": {

src/IntentScorer.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ export class IntentScorer implements IIntentScorer {
5757
Promise.all(promises)
5858
.then(intents => {
5959
var sortedIntents = _.sortBy(_.compact(intents), 'score').reverse();
60-
sortedIntents = _.filter(sortedIntents, intent => intent.intent != 'None');
6160
resolve(sortedIntents);
6261
})
6362
.catch(reject);

0 commit comments

Comments
 (0)