AIML is an XML-compatible text document. It is now briefly introduced XML specification: XML Each type such as
AIML>
1. XML Version = "1.0" encoding = "GB2312"?> This is all XML documents must be declared, if it is in Chinese, it is necessary to declare the code: GB2312, if it is English, it is generally declared as: UTF-8
2. Category represents a directory, indicating a question and answer match and a question of multiple answers match, but do not allow multiple questions to match.
3. Pattern represents the matching mode, indicating that the user's input match, the above example, once the user enters you, then the robot finds this match, then remove the response "good";
4. Template expires an answer, here to answer a "good" word.
With these simple elements, you can write an idea matching mode, reach certain intelligence, but only these elements are not enough in practical applications, and will be further introduced.
Note: All element properties of AIML are sensitive! ! ! The English in the Pattern element of AIML must be capitalized! ! !
4, detailed description
Think elements
Such as:
2.
3.
Name is a pre-defined variable, the first value of the NAME variable is equal to VALUE, the reply content includes "Hello"; the second representation of the value of the Name variable If the value is included, the reply content includes "" Hello, "The third specifically represents the value of the Name variable if the value of Value, the reply content includes" Hello "(this means is not clear) to take an example:
category>
a. situation 1: If you set the variable "user name" in advance, it is equal to "Zhang San", then the user accepted by: Hello! You come again;) b. Situation 2: If no definition or variable "user name" is not equal to "Zhang San" in advance, then the reply content accepted is: Hello! Wait several:
6. 8. 9. 10. Represents user input, for example: will output the second input of the user's reciprocal, see the following conversations: User: Good AU: You, what is your name? User: My name is Montenegro Robot: Oh, hello Montenegro. If there is a piece in the AIML file: template> category> If the user enters "嘿" at this time, the robot will reply: You just said: "My name is Montenegro"? The number of Index attributes indicates the first few words, 1: The first sentence, 2: countdown 2nd sentence, so on. 11. 12.
13.
14.
15.
17.
18.
20. Defines a reply template.
twenty one. > Indicates that > Also equals twenty two. Only when the current Topic system variable is "Kung Fu" will only match here. 25. 26. appendix: There is a relative, spleen and stomach weakness, digestive absorption function is very poor, faceful, and the weight is increasing, and it is not fine all day. I will introduce him if I have a small forest meal, and I will practice myself, practicing seriously, and more than 20 days, the amount of food has increased, and people also have a spirit. See the effect, practice more serious, after two months, I went to see him, I saw him in the face of ruddy, speaking, and the weight also increased, and two people were sentenced to the past. This work is very simple, one will learn, now you will now. After the meal, the bed or lying on the sofa, so that the upper body is 30 to 45 degrees of oblique angles in the upper body, relax the belt, two leg discs, the tongue, natural breathing, two palms over the belly Dantian, It is imaginary in the abdomen with water whirlpool, then use the right palm with the navel as the heart, about 10 above the belly cm There is 180 times in the clockwise direction; then use the left palm to turn around 180 times in front of the clockwise direction. The palm of the palm of the palm of the palm, it is the idea of the idea, it is to be induced by the palm of the palm. It should not be too hard to do it. It can't completely don't worry, but a slight walking, and The internal gas is driven. When Dantian is really full, the arrogance will follow the clouds, and there is a feeling of jumping, hot, cool, hemp, and willingness, which should be restrained. After this less forest, Luo Han is the third 3st spot disciple of Shaolin Temple. Li Sen Tang The teacher was built in "Shaolin Guangcheng Qigong" in 1986. Almost all skills are forbidden within half an hour after a meal, and this success is to practice, can strengthen the intake of intake, Therefore, it can quickly cultivate internal gas, and open the Renmin and Dusel in a short period of time, so that the small week is running. After guiding the gas, the spleen and stomach is running, driving the viscera of liver, lung, kidney, etc., thereby mobilizing the potential fitness of the five organs, preventing disease, in addition to the chronic disease of digestive system, For gas, asthma, women's menstruation and male impotence and premature ejaculation, kidney deficiency urine urgency, etc. also have a gratifying effect. A very simple movement can make the five orchestra, and in line with the principle of "Avenue to Jane", the Mushan Shaolin Temple hosted the Demun Master to praise this practice "as Shaolin Zenghui." I am in order to replace the nap, I'm happy, I am agile, my work is very helpful to the afternoon. I have a cold in the past, after the practice, I have never suffered from sick, my spirit is full, the steps are simple, and there is a spirit of hundreds of miles and tireless. Interested parties