人工智能标记语言 AIML Tag

v1.0.1

标签含义备注
<aiml>3.2. AIML ElementAIML block delimeter
<topic name=”X”>4. TopicX is AIML pattern
<category>5. CategoryAIML knowledge unit
<pattern>6. PatternAIML input pattern
<that>6.1. Pattern-sideThat contains AIML pattern
<template>7. TemplateAIML response template
<star index=”N”/>7.1.1. Starbinding of *
<that index=”M,N”/>7.1.2. Template-side Thatprevious bot utterance
<input index=”N”/>7.1.3. Inputinput sentence
<thatstar index=”N”/>7.1.4. Thatstarbinding of * in that
<topicstar index=”N”/>7.1.5. Topicstarbinding of * in topic
<get name=”XXX”/>7.1.6. GetBotmaster defined XXX, default
<bot name=”XXX”/>7.1.6.1. BotCustom bot parameter
<sr/>7.1.7. Short-cut elements<srai><star/></srai>
<person2/>7.1.7. Short-cut elements<person2><star/></person2;>
<person/>7.1.7. Short-cut elements<person><star/></person;>
<gender/>7.1.7. Short-cut elements<gender><star/></gender;>
<date/>7.1.8. System-defined predicatesdate and time
<id/>7.1.8. System-defined predicatesclient identifer
<size/>7.1.8. System-defined predicates# of categories loaded
<version/>7.1.8. System-defined predicatesAIML program version
<uppercase>7.2.1. Uppercaseconvert all text to Uppercase
<lowercase>7.2.2. Lowercaseconvert all text to Lowercase
<formal>7.2.3. Formalcapitalize every word
<sentence>7.2.4. Sentencecapitalize the first word
<condition name=”X” value=”Y”>7.3.1. ConditionOne shot branch
<condition name=”X”>7.3.1. ConditionSingle predicate branch
<condition> 7.3.1. ConditionMulti predicate branch
<random>7.3.2. RandomRandom uniform selection
<li name=”X” value=”Y”>7.3.1. Conditionused by <condition>
<li value=”Y”>7.3.1. Conditionused by <condition>
<li>7.3.2. Randomused by <random>,<condition>
<set name=”XXX”>7.4.1. SetMay return XXX or value
<gossip>7.4.2. GossipAppend to file
<srai>7.5.1. SRAIRecursion
<person2>7.6.1. Person2swap 1st & 3rd person
<person>7.6.2. Personswap 1st & 2nd person
<gender>7.6.3. Genderchange gender pronouns
<think>7.7.1. Think Hidesside-effects
<learn>7.7.2. Learn AIMLloading
<system>7.8.1. Systemplatform-dependent
<javascript>7.8.2. JavaScriptJavascript