Skip to content
This repository was archived by the owner on Jan 15, 2025. It is now read-only.

Commit 1dd626d

Browse files
authored
Port of botbuilder-tools #1305 to bf-cli (#163)
* fixup * For BB-tools#1305
1 parent ac552bb commit 1dd626d

File tree

12 files changed

+0
-87
lines changed

12 files changed

+0
-87
lines changed

packages/luis/src/parser/lufile/parseFileContents.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -255,12 +255,6 @@ const parseAndHandleIntent = function (parsedContent, luResource) {
255255
}
256256
}
257257
});
258-
259-
// if this intent does not have any utterances, push this pattern as an utterance as well.
260-
let intentInUtterance = helpers.filterMatch(parsedContent.LUISJsonStructure.utterances, 'intent', intentName);
261-
if (intentInUtterance.length === 0) {
262-
parsedContent.LUISJsonStructure.utterances.push(new helperClass.uttereances(utterance, intentName, []));
263-
}
264258
} else {
265259
entitiesFound.forEach(entity => {
266260
// throw an error if phraselist entity is explicitly labelled in an utterance

packages/luis/test/fixtures/verified/11.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -180,11 +180,6 @@
180180
"intent": "CreateAlarm",
181181
"entities": []
182182
},
183-
{
184-
"text": "delete the {alarmTime} alarm",
185-
"intent": "DeleteAlarm",
186-
"entities": []
187-
},
188183
{
189184
"text": "set phone call as my communication preference",
190185
"intent": "CommunicationPreference",

packages/luis/test/fixtures/verified/7.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -143,11 +143,6 @@
143143
"text": "set an alarm for 7AM next thursday",
144144
"intent": "CreateAlarm",
145145
"entities": []
146-
},
147-
{
148-
"text": "delete the {alarmTime} alarm",
149-
"intent": "DeleteAlarm",
150-
"entities": []
151146
}
152147
],
153148
"patterns": [

packages/luis/test/fixtures/verified/9.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -174,11 +174,6 @@
174174
"intent": "CreateAlarm",
175175
"entities": []
176176
},
177-
{
178-
"text": "delete the {alarmTime} alarm",
179-
"intent": "DeleteAlarm",
180-
"entities": []
181-
},
182177
{
183178
"text": "set phone call as my communication preference",
184179
"intent": "CommunicationPreference",

packages/luis/test/fixtures/verified/9a.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -174,11 +174,6 @@
174174
"intent": "CreateAlarm",
175175
"entities": []
176176
},
177-
{
178-
"text": "delete the {alarmTime} alarm",
179-
"intent": "DeleteAlarm",
180-
"entities": []
181-
},
182177
{
183178
"text": "set phone call as my communication preference",
184179
"intent": "CommunicationPreference",

packages/luis/test/fixtures/verified/all.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -200,11 +200,6 @@
200200
"intent": "CreateAlarm",
201201
"entities": []
202202
},
203-
{
204-
"text": "delete the {alarmTime} alarm",
205-
"intent": "DeleteAlarm",
206-
"entities": []
207-
},
208203
{
209204
"text": "set phone call as my communication preference",
210205
"intent": "CommunicationPreference",

packages/luis/test/fixtures/verified/collated-luis.json

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -226,11 +226,6 @@
226226
"intent": "CreateAlarm",
227227
"entities": []
228228
},
229-
{
230-
"text": "delete the {alarmTime} alarm",
231-
"intent": "DeleteAlarm",
232-
"entities": []
233-
},
234229
{
235230
"text": "set phone call as my communication preference",
236231
"intent": "CommunicationPreference",
@@ -291,11 +286,6 @@
291286
"intent": "AskForUserName",
292287
"entities": []
293288
},
294-
{
295-
"text": "set {commPreference} as my communication preference",
296-
"intent": "CommunicationPreference",
297-
"entities": []
298-
},
299289
{
300290
"text": "can I get some m&m",
301291
"intent": "Buy chocolate",

packages/luis/test/fixtures/verified/ref6.json

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -90,16 +90,6 @@
9090
"text": "set an alarm for 7AM next thursday",
9191
"intent": "All",
9292
"entities": []
93-
},
94-
{
95-
"text": "delete the {alarmTime} alarm",
96-
"intent": "All",
97-
"entities": []
98-
},
99-
{
100-
"text": "set {commPreference} as my communication preference",
101-
"intent": "All",
102-
"entities": []
10393
}
10494
],
10595
"patterns": [],

packages/luis/test/fixtures/verified/ref8.json

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -90,26 +90,6 @@
9090
"text": "set an alarm for 7AM next thursday",
9191
"intent": "All",
9292
"entities": []
93-
},
94-
{
95-
"text": "delete the {alarmTime} alarm",
96-
"intent": "All",
97-
"entities": []
98-
},
99-
{
100-
"text": "set {commPreference} as my communication preference",
101-
"intent": "All",
102-
"entities": []
103-
},
104-
{
105-
"text": "delete the {alarmTime} alarm",
106-
"intent": "All",
107-
"entities": []
108-
},
109-
{
110-
"text": "set {commPreference} as my communication preference",
111-
"intent": "All",
112-
"entities": []
11393
}
11494
],
11595
"patterns": [],

packages/luis/test/fixtures/verified/root2_luis.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -177,11 +177,6 @@
177177
"intent": "CreateAlarm",
178178
"entities": []
179179
},
180-
{
181-
"text": "delete the {alarmTime} alarm",
182-
"intent": "DeleteAlarm",
183-
"entities": []
184-
},
185180
{
186181
"text": "set phone call as my communication preference",
187182
"intent": "CommunicationPreference",

0 commit comments

Comments
 (0)