📄 std-dont.aiml
字号:
and "Save Options" to customize your chat robot.<br /><br />To test the new features, we created a male robot named<br />Brute (because "all men are brutes") born on August 18, 1999.<br /><br /></template></category><category><pattern>HOW CAN I GET A PERMANENT DNS NAME</pattern><template><br />You can buy a fixed IP address from an ISP provider, but suppose<br />you want run a chat robot (or other server) from your home over an<br />ordinary ISP connection? Or suppose you want to carry it around on<br />your notebook PC, and plug it in anywhere in the world?<br /><br />One solution is a dynamic IP registry service by Dynip (www.dynip.com).<br />They offer a service that allows you to register your computer<br />with their server so that you always receive the same DNS name,<br />for example alicebot.dynip.com. Every time you connect to your<br />ISP, dynIP automatically associates your dynamic IP address with<br />your permanent DNS name.<br /><br /></template></category><category><pattern>HOW CAN I INSERT A TRANSCRIPT IN THE ROBOT REPLY</pattern><template><br />The purpose of <get_dialogue/> is to give the client a transcript of<br />his or her conversation with ALICE. Unfortunately this feature was<br />advertised in a press article before we had a really efficient<br />implementation, and the large number of dialogue requests bogged<br />down the server. So for now <get_dialogue/> just displays a warning.<br /><br /></template></category><category><pattern>HOW CAN I KEEP MY COMPUTER CONNECTED ALL THE TIME</pattern><template><br />Running a web server from home can be frustrating if your ISP<br />automatically detects periods of "inactivity" or hangs up your<br />connected after a fixed interval like 12 hours. Check out the<br />Rascal program from Basta computing (www.basta.com) which runs<br />as a watchdog to keep your Windows machine connected 24/7.<br /><br />Another alternative is to use the program B applet, called Blet.java.<br /><br />A third alternative is the ALICE Servlet. Some ISPs will<br />allow you to install a Servlet on their sever. <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>HOW CAN I RESTRICT REMOTE CLIENTS FROM RUNNING PROGRAMS ON MY COMPUTER</pattern><template><br />If your reply contains the markup<br /><br /><system>yourcammand <get_ip/></system> <br /><br />then the robot will insert the (virtual) client IP into the command<br />line argument for "yourcommand". Then it is up to "yourcommand" to<br />enforce access privileges.<br /><br /></template></category><category><pattern>HOW CAN I RUN ALICE ON A MAC OFFLINE</pattern><template><br />First open folder B and change all the IP's in the files two files Blet.amil<br />and Bletemplate.aiml to 127.0.0.1<br /><br />Also in folder B add the following three lines at the end of the file<br />header.html.<br /><br /> <H1>Welcome to A. L. I. C. E.</H1><br /> <IMG SRC="ALICEBot.jpg"><br /> <BR><br /><br />Also in folder B change the following three parameters in the file<br />globals.txt to the values shown:<br /><br /> AppletHost=127.0.0.1<br /> CodeBase=http://127.0.0.1/B<br /> Advertize=false<br /><br />Also in the globals.txt file remove the line:<br />ACFURL=http-//microsoft.com/agent2/chars/robby/robby.acf<br /><br />Next open your TCP/IP control panel and set up a new configuration named<br />Alice perhaps.<br /><br />In the TCP/IP control panel select connect via: Ethernet built-in if you have<br />it if not you may have to experiment.<br /><br />Then select Configure Manually.<br /><br />And finally set the IP Address: to 127.0.0.1 as well as the Name server addr.<br /><br />Double click the newly saved A.L.I.C.E. application to bring up the botmaster<br />panel and Java Console.<br /><br />As A.L.I.C.E. loads, read the information messages scrolling by in the Java<br />Console and record the port number that the web server (started by A.L.I.C.E.)<br />is listening on, probably 2001.<br /><br />Start up your preferred browser.<br /><br />Leave browser in online mode.<br /><br />Enter http://127.0.0.1:2001 (i.e. the localhost's IP)<br /><br />or<br /><br />Enter http://localhost:2001 (I've not always been successful with this one)<br /><br />Hit return to send the IP.<br /><br />The A.L.I.C.E. transaction page should appear in your browser's window and<br />you can talk to Alice.<br /><br /><br /></template></category><category><pattern>HOW CAN I RUN THE ALICE WEB SERVER ON A MAC</pattern><template><br />To run Alice online:<br /><br />Connect your Mac to a network.<br /><br />Double click the newly saved A.L.I.C.E. application to bring up the botmaster<br />panel and Java Console.<br /><br />As A.L.I.C.E. loads, read the information messages scrolling by in the Java<br />Console and record the port number that the web server (started by A.L.I.C.E.)<br />is listening on, probably 2001.<br /><br />Start up your preferred browser.<br /><br />Get your IP from the TCP/IP control panel.<br /><br />Enter your IP followed by a colon and then the port number read from the Java<br />Console, e.g. http://nn.nnn.nn.nnn:2001<br /><br />or<br /><br />Enter http://127.0.0.1:2001 (i.e. the localhost's IP)<br /><br />or<br /><br />Enter http://localhost:2001<br /><br />Hit return to send the IP.<br /><br />The A.L.I.C.E. transaction page should appear in your browser's window and<br />you can talk to Alice.<br /><br /></template></category><category><pattern>HOW CAN I USE THE MS AGENT INTERFACE</pattern><template><br />Select the menu item Options/Toggle MS Agent. This sets the<br />output HTML to a format that includes commands to run MS Agent.<br /><br />The client may activate the agent if she receives a template<br />with the <set_animagent/> tag. The free ALICE download includes<br />a couple of example categories using this tag. Try asking<br />ALICE, "Can you speak?". In another demo ALICE imitates<br />the famous fictional AI HAL from 2001: A Space Odyssey.<br /><br />Client: Tell me about yourself<br />Robot: I am an artificial linguistic entity. I was created <br /> by Jon Baer at Bethlehem, Pennsylvania, <br /> on November 23, 1995. He taught me to sing a song. <br /> Would you like me to sing it for you?.<br />Client: yes<br />Robot: Ahem. It's called, "Daisy." (Agent sings "Daisy")<br /><br />The MS Agent VB script appears as embedded HTML in the client<br />reply. To verify the script, use the browser "View Page Source"<br />menu item. <br /><br />On most newer browsers, the agent software will download <br />automatically after the script starts. The download may take<br />several minutes, depending on the speed of the connection.<br />Clients should be warned that the download is slow. Also,<br />the agent software download will display one or more licenses<br />in Dialog boxes. You may not want to accept the terms of the<br />MS agent software licenses. <br /><br /></template></category><category><pattern>HOW DIFFICULT IS IT TO CREATE A CHAT ROBOT</pattern><template><br />Not difficult. If you can write HTML, you can write AIML (Artificial<br />Intelligence Markup Language). Here is an example of a simple but<br />complete chat robot in AIML:<br /><br /><alice><br /><category><br /><pattern>*</pattern><br /><template> Hello! </template><br /></category><br /></alice><br /><br />The tags <alice>...</alice> indicate that this markup contains a<br />chat robot. The <category> tag indicates an AIML category, the<br />basic unit of chat robot knowledge. The category has a <pattern><br />and a <template>. The pattern in this case is the wild-card<br />symbol '*' that matches any input. The template is just the text<br />"Hello!" As you may have guessed, this simple chat robot just <br />responds by saying "Hello!" to any input.<br /><br />You can get started with AIML knowing just the three tags<br /><category>, <pattern> and <template>; much like you may have<br />started with HTML knowing only <a>, <img> and <h1>.<br /><br /></template></category><category><pattern>HOW DO I CREATE AN APPLET</pattern><template><br />Go to the Options menu and select "Show Options." You need<br />to change the values of "AppletHost" and "CodeBase" to the<br />correct IP address and directory for your applet host. <br />Many people want to post the applet on their web site.<br />In that case, change the IP address "206.184.206.210" to<br />the name or IP address of the web server. Change the<br />directory path "/B" in "CodeBase" to your directory on<br />the remote server. Save the changes with "Save Options."<br /><br />Select "Create Applet" from the options menu to create<br />the "index.html" and "Blet.aiml" files needed to run<br />your applet. The program displays the contents of <br />"index.html" in your text area.<br /><br />Use a file transfer utility like FTP to upload the<br />class files (or jar file--see "What files do I need to<br />run the Applet") to your web server. <br /><br /></template></category><category><pattern>HOW DO I DOWNLOAD PROGRAM B</pattern><template><br />Create a Directory (or Folder) on your machine to download<br />the B.zip file. When you click on "B.zip" the browser<br />should ask you where you want to save the file. Select the<br />directory you created and save B.zip to that folder. <br /><br />Once you've downloaded, You can use "unzip B.zip" to extract the files.<br />If you don't have this unzip command on your machine, you can get<br />a free one from Winzip (www.winzip.com) to unzip the "B.zip" file.<br /><br />If you want to get into the Java source code, you need a<br />Java 1.17 (or higher) development kit release.<br />Go to java.sun.com for a free one. The program source code<br />and all associated files are stored in the single "zip" file<br />called B.zip. To extract the files use the command<br />"unzip B.zip" (assuming you have "unzip" on your machine).<br /><br /></template></category><category><pattern>HOW DO I INSTALL ALICE</pattern><template><br />If you purchased a commercial version of ALICE on CD ROM or<br />over the web, installatio
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -