This section lists all blog posts, regardless of topic.
Exercise 27: Visual feedbackOctober 17, 2008
SummaryImplement a class that, given a string, opens a full screen window with no title bar, a black background, and the given text displayed in white letters centered horizontally and vertically. The text should remain visible for 3 seconds and then the window should disappear.
Exercise 26: Web queriesOctober 17, 2008
SummaryTo be useful, an in-house AI needs to be able to answer questions that involve getting data from the web.
At its base level, this will be handled as a linguistic transformation. For example:
| what temperature is it outside? -> temperature() |
|
A new mapping type called
Programs will be defined, which will associate function names with their implementations. For example:
| temperature -> Plato.Programs.Temperature.Query |
|
Optionally, a DLL name can be specified:
| temperature -> plato.dll: Plato.Programs.Temperature.Query |
|
Arguments can be specified as well:
| what's the current temperature in {city} ? -> city_temperature($1) |
|
| city_temperature -> Plato.Programs.Temperature.CityQuery |
|
All arguments are of type string and consist of the entity's ID. The function return value is also a string.
Implement the
Query and
CityQuery functions mentioned here.
Exercise 25: Alternatives to far-field ASROctober 17, 2008
SummaryAlthough far-field ASR may be an ideal component of an in-house AI, current technology doesn't afford it as an option. This exercise is to determine a viable alternative.
SolutionA wireless microphone is a viable alternative to far-field ASR.
A Bluetooth headset is a good option in terms of cost, non-intrusive design, and range of operation.
older >>