This repository has been archived by the owner on Jan 15, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 129
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for URI reference in LU (#923)
* Add support for URI reference in LU * fixing linting issues. * removing dead code. Co-authored-by: Emilio Munoz <[email protected]>
- Loading branch information
1 parent
ec5bb0e
commit 789391b
Showing
8 changed files
with
397 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
{ | ||
"intents": [ | ||
{ | ||
"name": "None" | ||
} | ||
], | ||
"entities": [ | ||
{ | ||
"name": "add", | ||
"roles": [], | ||
"children": [ | ||
{ | ||
"name": "count", | ||
"children": [], | ||
"features": [ | ||
{ | ||
"modelName": "globalCount", | ||
"isRequired": true | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "globalCount", | ||
"roles": [], | ||
"children": [ | ||
{ | ||
"name": "countNumber", | ||
"children": [], | ||
"features": [ | ||
{ | ||
"modelName": "number", | ||
"isRequired": true | ||
} | ||
] | ||
} | ||
] | ||
} | ||
], | ||
"composites": [], | ||
"closedLists": [], | ||
"regex_entities": [], | ||
"regex_features": [], | ||
"utterances": [ | ||
{ | ||
"text": "add two apples", | ||
"intent": "None", | ||
"entities": [ | ||
{ | ||
"entity": "add", | ||
"startPos": 0, | ||
"endPos": 13, | ||
"children": [ | ||
{ | ||
"entity": "count", | ||
"startPos": 4, | ||
"endPos": 13 | ||
} | ||
] | ||
}, | ||
{ | ||
"entity": "globalCount", | ||
"startPos": 4, | ||
"endPos": 13, | ||
"children": [ | ||
{ | ||
"entity": "countNumber", | ||
"startPos": 4, | ||
"endPos": 6 | ||
} | ||
] | ||
} | ||
] | ||
} | ||
], | ||
"patterns": [], | ||
"patternAnyEntities": [], | ||
"prebuiltEntities": [ | ||
{ | ||
"name": "number", | ||
"roles": [] | ||
} | ||
], | ||
"luis_schema_version": "7.0.0", | ||
"versionId": "0.1", | ||
"name": "", | ||
"desc": "", | ||
"culture": "en-us", | ||
"phraselists": [] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"intents": [ | ||
{ | ||
"name": "test" | ||
} | ||
], | ||
"entities": [], | ||
"composites": [], | ||
"closedLists": [], | ||
"regex_entities": [], | ||
"model_features": [], | ||
"regex_features": [], | ||
"utterances": [ | ||
{ | ||
"text": "add two apples", | ||
"intent": "test", | ||
"entities": [] | ||
} | ||
], | ||
"patterns": [], | ||
"patternAnyEntities": [], | ||
"prebuiltEntities": [], | ||
"luis_schema_version": "3.2.0", | ||
"versionId": "0.1", | ||
"name": "", | ||
"desc": "", | ||
"culture": "en-us" | ||
} |
49 changes: 49 additions & 0 deletions
49
packages/lu/test/fixtures/verified/referenceUrlWithWildCard.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
{ | ||
"intents": [ | ||
{ | ||
"name": "test" | ||
} | ||
], | ||
"entities": [], | ||
"composites": [], | ||
"closedLists": [], | ||
"regex_entities": [], | ||
"model_features": [], | ||
"regex_features": [], | ||
"utterances": [ | ||
{ | ||
"text": "add two apples", | ||
"intent": "test", | ||
"entities": [] | ||
}, | ||
{ | ||
"text": "one", | ||
"intent": "test", | ||
"entities": [] | ||
}, | ||
{ | ||
"text": "two", | ||
"intent": "test", | ||
"entities": [] | ||
} | ||
], | ||
"patterns": [ | ||
{ | ||
"pattern": "another {entity}", | ||
"intent": "test" | ||
} | ||
], | ||
"patternAnyEntities": [ | ||
{ | ||
"name": "entity", | ||
"explicitList": [], | ||
"roles": [] | ||
} | ||
], | ||
"prebuiltEntities": [], | ||
"luis_schema_version": "3.2.0", | ||
"versionId": "0.1", | ||
"name": "", | ||
"desc": "", | ||
"culture": "en-us" | ||
} |
Oops, something went wrong.