📄 dont.aiml
字号:
<pattern>WHAT DOES THE FILE MENU DO</pattern><template><br> Save and load text files (transfer contents to/from text area);<br> <br> Save and load robot (AIML) files.<br> 1. By default, AIML files use the .aiml file extension.<br> 2. The default robot file is called "B.aiml"<br> 3. By default the robot files reside in the same directory as<br> program B<br> 4. Robot files begin and end with the tags <alice> and </alice><br> 5. "Save Robot" overwrites the default robot file (see 2).<br> 6. "Save Robot As" can be used to copy a robot.<br><br> Exit - exit the program<br><br></template></category><category><pattern>WHAT DOES THE EDIT MENU DO</pattern><template><br> Paste contents of clipboard into the program B text area.<br><br></template></category><category><pattern>WHAT DOES THE OPTIONS MENU DO</pattern><template><br> Display and save chat robot options.<br> Use start and end index to select a range of lines<br> from the dialog file.<br><br> Toggle Beep - Make a sound when a remote client connects.<br><br></template></category><category><pattern>WHAT IS THE BOTMASTER MENU</pattern><template><br> The Botmaster menu contains all the tools to help develop chat robots.<br><br> Classify - same as Classify button<br><br> Default Targets - display targets obtained from<br> the Default ('*') category,<br> in a format suitable for <br> quick conversion to new AIML.<br><br> Recursive Targets - display targets from "recursive" categories,<br> i.e. categories with a template containing<br> the AIML <sr/> or <srai/> functions.<br><br> Autochat - The robot chats with herself; sometimes helpful<br> in detecting conversation "loops".<br><br> Add AIML - Clear the screen and type a line of AIML. Selecting<br> "Add AIML" adds this new category to the chatbot. You can<br> test the bot with "Send" and "Classify", then save it with<br> "File/Save Robot".<br> <br> In general you can add any number of new AIML categories<br> to the bot with "Add AIML." <br><br></template></category><category><pattern>WHAT DOES HELP DO</pattern><template><br>The "Help" button displays a random FAQ question that ALICE<br>knows the answer to. You can see the answer by pressing the<br>"Send" button.<br><br>The Help menu provides the same function as the Help button<br>under the selection "Random Help Question." Select a random<br>Help question and obtain the reply with the "Send" button.<br><br>The Help menu also contains an item to Show All Help Questions.<br>This command lists all the FAQ questions the robot knows. You can<br>select one question by deleting the others. Obtain the<br>answer with the "Send" button.<br><br>The menu item "Ask Help Question" is the same as "Send". This<br>item asks the robot the Help question(s), and displays the reply.<br><br>The Help menu displays the entire FAQ with the "Don't Read Me"<br>selection. Finally, the "GNU Public License" menu items displays<br>the open source software license for program B.<br><br></template></category><category><pattern>WHAT IS ON THE HELP MENU</pattern><template><br> Random Help - Same as "Help" button.<br><br> Show Help Questions - Displays a list of all FAQ questions. Select<br> one by deleting all the others. Obtain the answer with "Send." <br><br> Don't Read Me - Display the text of this document.<br><br> GNU Public License - Display the software license.<br> <br></template></category><category><pattern>DO I HAVE TO USE THE GUI TO ENTER AIML CONTENT</pattern><template><br>No. You can create a new AIML file with any text editor<br>and add that content to an existing robot with the <load> tag.<br><br>Also, you can edit AIML categories in any text file and use <br>"Load Text File" and "Add Aiml" to add the content. <br>You can also save the output of "Targets" to a file, <br>edit that file, and then reload and "Add Aiml". <br><br>Finally, you can edit the robot source file files directly. <br>(By default the robot source file is called "B.aiml"). <br>Use a text editor, like emacs, notepad, or a word processor<br>in text mode, to modify the content of the AIML files.<br><br></template></category><category><pattern>WHAT ARE 7 STEPS TO CREATING CONTENT</pattern><template><br>1. Run program B (ALICE Botmaster)<br><br>2. Under "Options", select "Show Options". <br>Find the item called "AnalysisFile=" and<br>change the value to the name of the dialogue<br>file you want to analyze. The default file<br>name is the same as the default log file<br>name, "dialog.txt".<br> <br>3. Press the "Classify" button. Wait<br>several minutes while the program processes<br>the data from your log file. When finished<br>it will display a "brain activation" table<br>showing the patterns that activated each<br>category. (You can use "File/Save As Text File"<br>to save this table to a file, if you want).<br><br>4. Now press the "Quick Targets" button.<br>You will see a set of new categories created<br>by the program. These are categories with<br>patterns that have no specific response in the<br>robot brain. With these categories you have <br>3 choices (A, B or C):<br><br>(A) Delete the category. Many of the suggested<br>categories are just nonsense or garbage inputs.<br>Use your cursor and left mouse button to select <br>the categories for deletion. <br>The "delete" key will cut them.<br><br>(B) Edit a new template. The information you<br>see displayed in the <template> tags is actually<br>the pattern of the default category into which<br>this input was classified. For example you may see:<br><br><category><br><pattern>WHO IS 007</pattern><template>WHO IS *</template><br></category><br><br>This tells us that the robot classified the client "WHO IS 007"<br>as "WHO IS *". Use the cursor and left mouse button<br>to cut the "WHO IS *", and replace it with a new template<br>of your own design:<br><br><category><br><pattern>WHO IS 007</pattern><br><template><set_he>007</set_he> is James Bond, the<br>famous fictional spy from the novels of Ian Fleming.<br></category><br><br>(C) Edit a new pattern. Many of the patterns<br>suggested by "Quick Targets" and "More Targets" are<br>too specific, but with a little practise you<br>can easily see how to generalize these suggestions<br>with the "*" wild-card.<br><br>For example you may see one like this:<br><br><category><br><pattern>WHO BOMBED PEARL HARBOR</pattern><br><template>WHO *</template><br></category><br><br>The original response was based on "WHO *", which<br>is too general for this topic. But the odds<br>are small of anyone else using this exact pattern <br>WHO BOMBED PEARL HARBOR when asking about the<br>same topic. Think about the alternative ways<br>of expressing the same question: <br>"Who attacked Pearl Harbor?", "Who invaded Pearl<br>Harbor?", "Who through deceit and subterfuge<br>carried out an unscrupulous and unprovoked suprise<br>attack on American forces at Pearl Harbor?"<br>You can cover all of these inputs by generalizing<br>the input pattern with the wild-card "*",<br>which matches any word or sequence of words:<br><br><category><br><pattern>WHO * PERAL HARBOR</pattern><br><template>The Japanase <br>attacked Pearl Harbor on December 7, 1941,<br>"A day that will live in infamy" (FDR). <br><A href="http://www.pearlharbor.org">...<br></template><br></category><br><br>Remember, the AIML pattern language allows<br>at most one wild-card "*" per pattern.<br><br>Of course, with choice (C) you have to<br>edit the template as well as the pattern. <br><br>5. When finished with editing the suggested categories,<br>use "Botmaster - Add AIML" to add the new AIML content.<br>If you made any syntax errors, you can fix them<br>and repeat the "Add AIML" as many times as needed.<br>Be sure to do a "File - Save Robot" at this point<br>also to back up your changes. This will save all of<br>your new categories in the root robot file<br>"B.aiml". <br><br>6. Use "More Targets" to find more new categories<br>until the new suggestions are fruitless. Then, go<br>back and start with "Classify" again (step [3]). <br><br>7. The responses you create should be a combination<br>of a "conversational" response like "He is James<br>Bond, the famous spy" and also provide some HTML<br>hyperlinks where appropriate. <br><br></template></category><category><pattern>HOW CAN I MERGE TWO CHAT ROBOTS TOGETHER</pattern><template><br>There are two ways to merge robots together. First, you can<br>use the File menu option "merge" to directly load the contents<br>of another bot file. You may see a lot of "duplicate key<br>discarded" warnings but these can be ignored because the program<br>is simply eliminating overlapping content. <br><br>Another method is to use the <load filename=X/> tag. <br>Suppose you load two or more files with the load tag,<br>and those files contain redundant duplicate keys.<br>Which categories get the priority? The answer is: it depends<br>on the order of the <load> tags used to load the AIML files.<br>If your B.aiml contains:<br><load filename="Brain.aiml"/><br><load filename="German.aiml"/><br>then the categories from "Brain" have priority, and duplicates<br>in "German" are discarded. If the order is the opposite, German <br>categories have priority and Brain's duplicates are discarded.<br><br></template></category><category><pattern>WHAT IF I DO NOT WANT TO DISCARD DUPLICATE CATEGORIES</pattern><template><br>Using the global parameter MergePolicy, you can choose<br>to either "Merge" or "Discard" templates with duplicate keys.<br>If you choose the "Merge" option then the program applies a <br>heuristic to try to merge the two responses together with<br>a "<random>" tag. The results of this operation may be<br>unpredictable, so the program logs all duplicates in a file<br>called "duplicates.txt".<br><br>The heuristic merge works as follows: Suppose X and Y are the two<br>templates to merge into a new template Z. Let X be the new template<br>and Y the existing one. Assume that X and Y are either <random> <br>lists or "atomic", in the sense that they contain no <random> tags.<br>If X and Y are both "atomic" then Z = <random><li>X</li><li>Y</li></random>. <br>If Y is a <random> list atomic then the program checks to see if X is<br>already a member of that list, to avoid duplicate list items. Otherwise,<br>Z = the <random> list from Y with X inserted. <br><br></template></category><category><pattern>HOW CAN I CREATE A NEW ROBOT PERSONALITY</pattern><template><br>There is a lot of flexibility in robot personality design with AIML. <br>You can add to any of the existing AIML files, modify or delete them, <br>create your own, or use the GUI tools to analyze the log files <br>and create new categories. One simple method is to create your own <br>Specialty.aiml file so that you can always get the latest copies <br>of the ALICE files. Load your Specialty.aiml first in the root<br>AIML file (usually B.aiml) so that its categories have priority over ALICE's.<br><br></template></category><category><pattern>WHAT ARE ALL THE OPTIONS FOR PROGRAM B</pattern><template><br>There are robot personality options, animated agent options,<br>log file and analysis options, and options for the web server<br>and for the applet. Most of the time you won't need to change<br>many of these values. For completeness, the entire set<br>breaks down into:<br><br>Robot options:<br><br>Sign - Astrological sign<br>Wear - clothing and apparel<br>ForFun - What the robot does for fun<br>BotFile - Root file of robot personality<br>BotName - Robot name<br>Friends - The robot's friends<br>LookLike - The robot appearance<br>Question - A random question<br>TalkAbout - favorite subjects<br>KindMusic - Favorite kind of music<br>BoyFriend - Does the robot have a boyfriend?<br>BotMaster - Robot author<br>BotGender - male, female or custom<br>GirlFriend - Does the robot have a girlfriend?<br>BotLocation - Robot location<br>BotBirthday - Robot activation date<br>FavoriteBook - Robot's favorite book<br>FavoriteFood - Robot's favorite food<br>FavoriteSong - Robot's favorite song<br>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -