You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 15, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: packages/lu/docs/lu-file-format.md
+19Lines changed: 19 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -358,6 +358,25 @@ By default synonyms are set to be **not interchangeable** (matches with the port
358
358
- you are
359
359
```
360
360
361
+
Phrase lists can be marked as `disabled` using this notation:
362
+
363
+
```markdown
364
+
@ phraselist abc disabled
365
+
366
+
> also same as this
367
+
@ phraselist question(interchangeable) =
368
+
- are you
369
+
- you are
370
+
371
+
@ question disabled
372
+
```
373
+
374
+
Phrase lists by default are enabled for all models. However when you explicitly start assigning phrase list as a feature (descriptor) to other models, then the specific phrase lists is not enabled for all models. To explicitly make a phrase list always available to all models, you can do so via:
375
+
376
+
```markdown
377
+
@ phraselist abc enabledForAllModels
378
+
```
379
+
361
380
## Model as feature
362
381
363
382
Here's how you add a feature to a ml entity or an intent - with `usesFeature`.
leterrorMsg=`Phrase list entity ${entityName} has invalid role definition with roles = ${entityRoles.join(', ')}. Roles are not supported for Phrase Lists`;
1212
-
leterror=BuildDiagnostic({
1213
-
message: errorMsg,
1214
-
context: currentLine
1213
+
// Phrase lists cannot have roles; however we will allow inline definition of enabledForAllModels as well as disabled as a property on phrase list.
leterrorMsg=`Phrase list entity ${entityName} has invalid role definition with roles = ${entityRoles.join(', ')}. Roles are not supported for Phrase Lists`;
.it('luis:convert successfully converts LUIS JSON model with no phrase lists (output must have phraselists if any v6 concepts are present in the .lu file)',async()=>{
.it('luis:convert successfully converts LUIS JSON model with no phrase lists (output must have phraselists if any v6 concepts are present in the .lu file)',async()=>{
0 commit comments