json
for serializing the Adapt Intent Parser output, and sys
for reading in command line arguments.IntentBuilder
and `IntentDeterminationEngine.engine
.collection
of weather types. These act as a query parameter on a Weather Intent.Will it rain in Seattle tomorrow?
collection
of weather types can then be used to determine whether that weather type is occurring in Seattle.engine
.collection
of locations is declared. These also act as a query parameter on a Weather Intent, and can be used in combination with the weather type collection
.engine
.intent parser
. The intent parser
is named WeatherIntent
and requires both a WeatherKeyword
and Location
, and can optionally include a WeatherType
.intent parser
with the engine
.engine.determine_intent()
. This function returns a generator, and we then use the generator to iterate through the results.stdout
.stdout
- you can use it to build all sorts of tools.