Introduction
Here is a natural language dialogue system that answers simple queries given by human. Basically, it is a template system, with simplification rules and translation rules, written in SWI-Prolog to convert human queries into commands.
Each query is processed in the following way:
- Split the query into a list of words.
- Convert all letters of the words into lower case letters.
- Apply simplification rules to reduce the words into a short sentence.
- Apply translation rules to convert the short sentence into a command.
- Execute the command. For this system, a message is returned to the human.
Sample Dialogue
In the dialogue below,
|:
query asked by human[
query splitted into words with lower case letters]
[
simplified sentence]
[
command to be executed]
- The sentence between a pair of
---
are answered by the system.
No comments:
Post a Comment