⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dont.aiml

📁 ALICE 利用AIML (Artificial Intelligence Markup Language)来形成对你的查询和输入的响应。不像其它花费数千美元的商业聊天机器人软件
💻 AIML
📖 第 1 页 / 共 5 页
字号:
FavoriteBand - Robot's favorite band<br>FavoriteMovie - Robot's favorite movie<br>FavoriteColor - Robot's favorite color<br>BotBirthplace - Robot's birthplace<br><br>MS Agent options:<br><br>Animagent - true or false for activating MS Agent VB scripting<br>ACFURL - file or URL location of MS Agent software<br><br>Log/Analysis options:<br><br>AnalysisFile - file selected for log file analysis<br>LogFile - file for recording robot dialogues<br>ClientLineContains - a pattern identifying input lines in logfiles<br>RobotLineStarts - a pattern identifying robot lines in logfiles<br>StartLine - starting line for analysis<br>EndLine - ending line for log file analysis<br><br>Applet options:<br><br>AppletHost - DNS name or IP address of applet's server.<br>CodeBase - URL or directory of applet code.<br><br>Web server options:<br><br>ClerkTimeout - Web server option to retire waiting clerks<br>BrainSize - a threshold number of categories to display "loading"<br>Advertize - a boolean parameter to optionally display ad<br>Beep - Web server option to beep on client connections<br><br>Other:<br><br>Version - read only version number<br>TempFile - scratch file for temporary data<br>MergePolicy - 'Merge' or 'Discard' depending on how you <br>  want to handle duplicate key categories.<br><br>All of the options reside in the globals.txt file.  Running<br>program B, choose "Options/Show Options" to see the<br>contents of the file.<br><br></template></category><category><pattern>WHY IS THE FORMAT OF THE OPTIONS GLOBALS TXT SO STRANGE</pattern><template><br>Depending on your system, you may see a globals.txt file that looks like:<br><br>Animagent=true<br>Botmaster=Dr. Richard S. Wallace<br>AnalysisFile=dialog.txt<br>ClientLineContains=t:<br>LogFile=dialog.txt<br>CodeBase=D\:CHATTERBOTS\ALICE<br>StartLine=0<br>Beep=true<br>BotFile=B.aiml<br>AppletHost=206.184.206.210<br>EndLine=25000<br>BotName=ALICE<br>Birthday=November 23, 1995<br>TempFile=Temp.ai<br>RobotLineStarts=Robot<br># ... and so on<br><br>The global values seem to be stored in a random order.<br>This is not a bug. The Globals class uses the Java methods<br>Properties.load() and Properties.store() to save the globals<br>to a file. You can also use # and ! to add comments to the file. <br><br>The Properties class uses a hash table representation, so does<br>not preserve the order of the global variables.  The program<br>displays and saves the global options in an arbitrary order.<br> <br><br></template></category><category><pattern>HOW DOES THE WEB SERVER WORK</pattern><template><br>By default the web server starts on port 2001.  This means you can<br>access the web server through the URL http://localhost:2001 on<br>your own machine.  Find out your IP address or DNS name and tell<br>your friends to connect to "http://yourcompany.com:2001".<br>(One way to find out your IP address is by running "netstat -n"<br>to view all your open TCP/IP connections).<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 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>DOES THE WEB SERVER HAVE TO RUN ON PORT 2001</pattern><template><br>You can change the default web server port number in the "Option" Menu.<br><br></template></category><category><pattern>DOES PROGRAM B SERVE HTML FILES</pattern><template><br>Yes.  Program B is a "faux" web server that can serve a number of file<br>types just like an ordinary server.  Certain file names such as<br>"HOME.html", "header.html", and "trailer.html" are reserved by<br>program B, but you can create new HTML files and serve them with B.<br><br>Although program B can also serve image files and other large binary<br>files, we recommend creating chat robot web pages with links to images<br>served by other web servers or machines.  Reserve your chat robot server<br>for the robot chat, use ordinary web servers for images and other large<br>files.<br><br></template></category><category><pattern>WHAT FILES ARE NEEDED TO RUN THE PROGRAM B WEB SERVER</pattern><template><br>The program B directory must contain the HTML files header.html,<br>trailer.html, loading.html and HOME.html.  You can customize these files for<br>your bot, but take care with "header" and "trailer" because<br>program B uses these files to construct an HTML reply <br>(by inserting the robot reply and the text form between the <br>"header" and the "trailer").  Use "header" and "trailer" to<br>customize the robot with your own logo and links.<br><br>Program B needs at least one AIML file, usually called B.aiml<br>by default. The AIML file may contain &lt;load&gt; tags that recursively<br>load other AIML files; these must also be present.<br><br>The program also requires the file "globals.txt"<br>which it reads at start up. <br><br>The files "language.txt" and "predicates.txt" are option.<br>"language.txt" controls the language of the buttons and<br>menu items in the program B GUI.  The file "predicates.txt"<br>defines any custom predicates.<br><br>Program B also reads the files "gnu.txt" (the GNU Public License)<br>and "dont.txt" (this file). <br><br></template></category><category><pattern>CAN I TEST THE ROBOT OFFLINE ON MY DESKTOP</pattern><template><br>Yes.  You can run the program B server and connect to it with<br>a browser, even if your desktop computer is offline.<br><br>When working offline, it often helps to change the Internet<br>settings (in IE or Netscape) to "local area network".  <br>Then your machine becomes a one-computer network. You should <br>be able to use IE to connect to program B with http://localhost:2001.<br><br></template></category><category><pattern>CAN I RUN PROGRAM B IN THE BACKGROUND ON A NT SERVER</pattern><template><br>Yes. Set up your PC / Server to run Alice B as you normal. (Download the Java<br>Developers Kit, etc.)<br><br>Create a Batch file, in folder B containing only this text.<br><br>'jview bterm'<br><br>Create a task in the Task Schedule Wizard to run the batch file. (Ensure the<br>task starts in drive:\path\B'<br><br>Give the Task Schedule an appropriate Logon and password for the Server or<br>PC.<br><br>Right-click, select Run now, and log on and off as you like.<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>     &lt;H1&gt;Welcome to A. L. I. C. E.&lt;/H1&gt;<br>     &lt;IMG SRC="ALICEBot.jpg"&gt;<br>     &lt;BR&gt;<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 &lt;set_animagent/&gt; 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 Dr. Richard S. Wallace 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>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -