424 строки
8.3 KiB
JSON
424 строки
8.3 KiB
JSON
{
|
|
"luis_schema_version": "2.1.0",
|
|
"versionId": "0.1",
|
|
"name": "Travel Agent",
|
|
"desc": "Quickstart - Add example utterances",
|
|
"culture": "en-us",
|
|
"intents": [
|
|
{
|
|
"name": "BookFlight"
|
|
},
|
|
{
|
|
"name": "None"
|
|
},
|
|
{
|
|
"name": "OrderEspressoDrink"
|
|
},
|
|
{
|
|
"name": "OrderFood"
|
|
},
|
|
{
|
|
"name": "Weather.GetForecast",
|
|
"inherits": {
|
|
"domain_name": "Weather",
|
|
"model_name": "GetForecast"
|
|
}
|
|
}
|
|
],
|
|
"entities": [
|
|
{
|
|
"name": "Airline"
|
|
},
|
|
{
|
|
"name": "DrinkSize"
|
|
},
|
|
{
|
|
"name": "Location",
|
|
"children": [
|
|
"LocationTo",
|
|
"LocationFrom"
|
|
]
|
|
},
|
|
{
|
|
"name": "PassengerCategory",
|
|
"children": [
|
|
"infant",
|
|
"adult",
|
|
"child"
|
|
]
|
|
},
|
|
{
|
|
"name": "TravelClass",
|
|
"children": [
|
|
"economy",
|
|
"first",
|
|
"business"
|
|
]
|
|
}
|
|
],
|
|
"composites": [
|
|
{
|
|
"name": "TicketsOrder",
|
|
"children": [
|
|
"number",
|
|
"TravelClass",
|
|
"PassengerCategory"
|
|
]
|
|
}
|
|
],
|
|
"closedLists": [
|
|
{
|
|
"name": "Coastal Cities",
|
|
"subLists": [
|
|
{
|
|
"canonicalForm": "Barcelona",
|
|
"list": [
|
|
"capital city of catalonia",
|
|
"bcn",
|
|
"barna",
|
|
"second spanish city"
|
|
]
|
|
},
|
|
{
|
|
"canonicalForm": "madrid",
|
|
"list": [
|
|
"mad"
|
|
]
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"bing_entities": [
|
|
"datetimeV2",
|
|
"number"
|
|
],
|
|
"actions": [],
|
|
"model_features": [],
|
|
"regex_features": [],
|
|
"utterances": [
|
|
{
|
|
"text": "drive me home",
|
|
"intent": "None",
|
|
"entities": []
|
|
},
|
|
{
|
|
"text": "go to paris",
|
|
"intent": "BookFlight",
|
|
"entities": [
|
|
{
|
|
"entity": "Location::LocationTo",
|
|
"startPos": 6,
|
|
"endPos": 10
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"text": "will it snow today",
|
|
"intent": "Weather.GetForecast",
|
|
"entities": []
|
|
},
|
|
{
|
|
"text": "order me a drink",
|
|
"intent": "OrderEspressoDrink",
|
|
"entities": []
|
|
},
|
|
{
|
|
"text": "i want to order a coffee",
|
|
"intent": "OrderEspressoDrink",
|
|
"entities": []
|
|
},
|
|
{
|
|
"text": "will it rain this weekend",
|
|
"intent": "Weather.GetForecast",
|
|
"entities": []
|
|
},
|
|
{
|
|
"text": "book me a flight to paris",
|
|
"intent": "BookFlight",
|
|
"entities": [
|
|
{
|
|
"entity": "Location::LocationTo",
|
|
"startPos": 20,
|
|
"endPos": 24
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"text": "i want to order lunch",
|
|
"intent": "OrderFood",
|
|
"entities": []
|
|
},
|
|
{
|
|
"text": "book me 2 adult business tickets to paris tomorrow on air france",
|
|
"intent": "BookFlight",
|
|
"entities": [
|
|
{
|
|
"entity": "Airline",
|
|
"startPos": 54,
|
|
"endPos": 63
|
|
},
|
|
{
|
|
"entity": "TravelClass",
|
|
"startPos": 16,
|
|
"endPos": 23
|
|
},
|
|
{
|
|
"entity": "PassengerCategory",
|
|
"startPos": 10,
|
|
"endPos": 14
|
|
},
|
|
{
|
|
"entity": "Location::LocationTo",
|
|
"startPos": 36,
|
|
"endPos": 40
|
|
},
|
|
{
|
|
"entity": "TicketsOrder",
|
|
"startPos": 8,
|
|
"endPos": 23
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"text": "ticket to paris",
|
|
"intent": "BookFlight",
|
|
"entities": [
|
|
{
|
|
"entity": "Location::LocationTo",
|
|
"startPos": 10,
|
|
"endPos": 14
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"text": "what is the weather in redmond ?",
|
|
"intent": "Weather.GetForecast",
|
|
"entities": []
|
|
},
|
|
{
|
|
"text": "soliciting today's weather",
|
|
"intent": "Weather.GetForecast",
|
|
"entities": []
|
|
},
|
|
{
|
|
"text": "forecast in celcius",
|
|
"intent": "Weather.GetForecast",
|
|
"entities": []
|
|
},
|
|
{
|
|
"text": "will it be raining in ranchi",
|
|
"intent": "Weather.GetForecast",
|
|
"entities": []
|
|
},
|
|
{
|
|
"text": "provide me by toronto weather please",
|
|
"intent": "Weather.GetForecast",
|
|
"entities": []
|
|
},
|
|
{
|
|
"text": "\"i need to know the temperature at bangor, me\"",
|
|
"intent": "Weather.GetForecast",
|
|
"entities": []
|
|
},
|
|
{
|
|
"text": "get the forcast for me",
|
|
"intent": "Weather.GetForecast",
|
|
"entities": []
|
|
},
|
|
{
|
|
"text": "find out tomorrow's weather",
|
|
"intent": "Weather.GetForecast",
|
|
"entities": []
|
|
},
|
|
{
|
|
"text": "book a flight from seattle to hong kong",
|
|
"intent": "BookFlight",
|
|
"entities": [
|
|
{
|
|
"entity": "Location::LocationTo",
|
|
"startPos": 30,
|
|
"endPos": 38
|
|
},
|
|
{
|
|
"entity": "Location::LocationFrom",
|
|
"startPos": 19,
|
|
"endPos": 25
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"text": "buy a plane ticket to bangor me",
|
|
"intent": "BookFlight",
|
|
"entities": []
|
|
},
|
|
{
|
|
"text": "reservation for new york city",
|
|
"intent": "BookFlight",
|
|
"entities": [
|
|
{
|
|
"entity": "Location::LocationTo",
|
|
"startPos": 25,
|
|
"endPos": 28
|
|
},
|
|
{
|
|
"entity": "Location",
|
|
"startPos": 16,
|
|
"endPos": 23
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"text": "train to seattle",
|
|
"intent": "BookFlight",
|
|
"entities": [
|
|
{
|
|
"entity": "Location::LocationTo",
|
|
"startPos": 9,
|
|
"endPos": 15
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"text": "ticket to portland",
|
|
"intent": "BookFlight",
|
|
"entities": [
|
|
{
|
|
"entity": "Location::LocationTo",
|
|
"startPos": 10,
|
|
"endPos": 17
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"text": "asdfasdftimezoneoffset=0",
|
|
"intent": "BookFlight",
|
|
"entities": []
|
|
},
|
|
{
|
|
"text": "ticket to seattle tomorrowtimezoneoffset=0",
|
|
"intent": "BookFlight",
|
|
"entities": [
|
|
{
|
|
"entity": "Location::LocationTo",
|
|
"startPos": 10,
|
|
"endPos": 16
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"text": "go to 98102",
|
|
"intent": "BookFlight",
|
|
"entities": [
|
|
{
|
|
"entity": "Location::LocationTo",
|
|
"startPos": 6,
|
|
"endPos": 10
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"text": "go to 98105",
|
|
"intent": "BookFlight",
|
|
"entities": [
|
|
{
|
|
"entity": "Location::LocationTo",
|
|
"startPos": 6,
|
|
"endPos": 10
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"text": "order a large espresso",
|
|
"intent": "OrderEspressoDrink",
|
|
"entities": []
|
|
},
|
|
{
|
|
"text": "onee venti espresso",
|
|
"intent": "OrderEspressoDrink",
|
|
"entities": [
|
|
{
|
|
"entity": "DrinkSize",
|
|
"startPos": 5,
|
|
"endPos": 9
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"text": "onee vento espresso",
|
|
"intent": "OrderEspressoDrink",
|
|
"entities": [
|
|
{
|
|
"entity": "DrinkSize",
|
|
"startPos": 5,
|
|
"endPos": 9
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"text": "go to myattle",
|
|
"intent": "BookFlight",
|
|
"entities": [
|
|
{
|
|
"entity": "Location::LocationTo",
|
|
"startPos": 6,
|
|
"endPos": 12
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"text": "go to nyattle",
|
|
"intent": "BookFlight",
|
|
"entities": [
|
|
{
|
|
"entity": "Location::LocationTo",
|
|
"startPos": 6,
|
|
"endPos": 12
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"text": "go to oyattle",
|
|
"intent": "BookFlight",
|
|
"entities": [
|
|
{
|
|
"entity": "Location::LocationTo",
|
|
"startPos": 6,
|
|
"endPos": 12
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"text": "go to pyattle",
|
|
"intent": "BookFlight",
|
|
"entities": [
|
|
{
|
|
"entity": "Location::LocationTo",
|
|
"startPos": 6,
|
|
"endPos": 12
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"text": "go to qyattle",
|
|
"intent": "BookFlight",
|
|
"entities": [
|
|
{
|
|
"entity": "Location::LocationTo",
|
|
"startPos": 6,
|
|
"endPos": 12
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"text": "go to ryattle",
|
|
"intent": "BookFlight",
|
|
"entities": [
|
|
{
|
|
"entity": "Location::LocationTo",
|
|
"startPos": 6,
|
|
"endPos": 12
|
|
}
|
|
]
|
|
}
|
|
]
|
|
} |