This repository has been archived by the owner on Oct 12, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tutorial for machine-learned entity (#27)
- Loading branch information
Showing
2 changed files
with
185 additions
and
0 deletions.
There are no files selected for viewing
124 changes: 124 additions & 0 deletions
124
documentation-samples/tutorials/machine-learned-entity/pizza-intents-only.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,124 @@ | ||
{ | ||
"luis_schema_version": "6.0.0", | ||
"intents": [ | ||
{ | ||
"name": "Confirm", | ||
"features": [] | ||
}, | ||
{ | ||
"name": "Greeting", | ||
"features": [] | ||
}, | ||
{ | ||
"name": "None", | ||
"features": [] | ||
}, | ||
{ | ||
"name": "OrderPizza", | ||
"features": [] | ||
} | ||
], | ||
"entities": [], | ||
"hierarchicals": [], | ||
"composites": [], | ||
"closedLists": [], | ||
"prebuiltEntities": [], | ||
"utterances": [ | ||
{ | ||
"text": "barking dogs are annoying", | ||
"intent": "None", | ||
"entities": [] | ||
}, | ||
{ | ||
"text": "begin", | ||
"intent": "Greeting", | ||
"entities": [] | ||
}, | ||
{ | ||
"text": "can i get a pepperoni pizza and a can of coke please", | ||
"intent": "OrderPizza", | ||
"entities": [] | ||
}, | ||
{ | ||
"text": "can i get a small pizza with onions peppers and olives", | ||
"intent": "OrderPizza", | ||
"entities": [] | ||
}, | ||
{ | ||
"text": "delivery for a small pepperoni pizza", | ||
"intent": "OrderPizza", | ||
"entities": [] | ||
}, | ||
{ | ||
"text": "go ahead", | ||
"intent": "Confirm", | ||
"entities": [] | ||
}, | ||
{ | ||
"text": "hello", | ||
"intent": "Greeting", | ||
"entities": [] | ||
}, | ||
{ | ||
"text": "hey", | ||
"intent": "Greeting", | ||
"entities": [] | ||
}, | ||
{ | ||
"text": "hi", | ||
"intent": "Greeting", | ||
"entities": [] | ||
}, | ||
{ | ||
"text": "i need 2 large cheese pizzas 6 large pepperoni pizzas and 1 large supreme pizza", | ||
"intent": "OrderPizza", | ||
"entities": [] | ||
}, | ||
{ | ||
"text": "ok", | ||
"intent": "Confirm", | ||
"entities": [] | ||
}, | ||
{ | ||
"text": "order a pizza for me", | ||
"intent": "None", | ||
"entities": [] | ||
}, | ||
{ | ||
"text": "penguins in the ocean", | ||
"intent": "None", | ||
"entities": [] | ||
}, | ||
{ | ||
"text": "pickup a cheddar cheese pizza large with extra anchovies", | ||
"intent": "OrderPizza", | ||
"entities": [] | ||
}, | ||
{ | ||
"text": "start", | ||
"intent": "Greeting", | ||
"entities": [] | ||
}, | ||
{ | ||
"text": "sure", | ||
"intent": "Confirm", | ||
"entities": [] | ||
}, | ||
{ | ||
"text": "yes", | ||
"intent": "Confirm", | ||
"entities": [] | ||
} | ||
], | ||
"versionId": "0.1", | ||
"name": "Pizza tutorial intents only", | ||
"desc": "", | ||
"culture": "en-us", | ||
"tokenizerVersion": "1.0.0", | ||
"patternAnyEntities": [], | ||
"regex_entities": [], | ||
"phraselists": [], | ||
"regex_features": [], | ||
"patterns": [], | ||
"settings": [] | ||
} |
61 changes: 61 additions & 0 deletions
61
documentation-samples/tutorials/machine-learned-entity/pizza-intents-only.lu
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,61 @@ | ||
|
||
> LUIS application information | ||
> !# @app.name = Pizza tutorial intents only | ||
> !# @app.versionId = 0.1 | ||
> !# @app.culture = en-us | ||
> !# @app.luis_schema_version = 6.0.0 | ||
|
||
|
||
> # Intent definitions | ||
|
||
## Confirm | ||
- go ahead | ||
- ok | ||
- sure | ||
- yes | ||
|
||
|
||
@ intent Confirm | ||
|
||
## Greeting | ||
- begin | ||
- hello | ||
- hey | ||
- hi | ||
- start | ||
|
||
|
||
@ intent Greeting | ||
|
||
## None | ||
- barking dogs are annoying | ||
- order a pizza for me | ||
- penguins in the ocean | ||
|
||
|
||
@ intent None | ||
|
||
## OrderPizza | ||
- can i get a pepperoni pizza and a can of coke please | ||
- can i get a small pizza with onions peppers and olives | ||
- delivery for a small pepperoni pizza | ||
- i need 2 large cheese pizzas 6 large pepperoni pizzas and 1 large supreme pizza | ||
- pickup a cheddar cheese pizza large with extra anchovies | ||
|
||
|
||
@ intent OrderPizza | ||
|
||
> # Entity definitions | ||
|
||
|
||
> # PREBUILT Entity definitions | ||
|
||
|
||
> # Phrase list definitions | ||
|
||
|
||
> # List entities | ||
|
||
> # RegEx entities | ||
|
||
|