Code Monkey home page Code Monkey logo

aiml-sample-chatbot's Introduction

aiml-sample-chatbot

An chat bot created using AIML, for demo purpose.

These are the requirements for running this application on your system.

Step 1 - Set up Java Development Kit (JDK)

You can download the latest version of SDK from Oracle's Java site โˆ’ Java SE Downloads. You will find instructions for installing JDK in downloaded files, follow the given instructions to install and configure the setup. Finally set PATH and JAVA_HOME environment variables to refer to the directory that contains java and javac, typically java_install_dir/bin and java_install_dir respectively.

If you are running Windows and installed the JDK in C:\jdk1.7.0_75, you would have to put the following line in your C:\autoexec.bat file.

set PATH = C:\jdk1.7.0_75\bin;%PATH%
set JAVA_HOME = C:\jdk1.7.0_75

Alternatively, on modern Windows systems you could also right-click on My Computer, select Properties, then Advanced, then Environment Variables. Then, you would update the PATH value and press the OK button. Also you can create a new variable for JAVA_HOME in same way.

On Unix (Solaris, Linux, etc.), if the SDK is installed in /usr/local/jdk1.7.0_75 and you use the C shell, you would put the following into your .cshrc file.

setenv PATH /usr/local/jdk1.7.0_75/bin:$PATH
setenv JAVA_HOME /usr/local/jdk1.7.0_75

After installation plz run a sample command to endure java is installed correctly.

Step 2 - Set up Program AB

Now if everything is fine, then you can proceed to setup your Program AB. Following are the simple steps to download and install the library on your machine.

  • Make a choice whether you want to install AIML on Windows, or Unix and then proceed to the next step to download .zip file

  • Download the latest version of Program AB binaries from https://code.google.com/p/program-ab/ using its program-ab-0.0.4.3.zip link.

  • At the time of creating this demo, I downloaded program-ab-0.0.4.3.zip on my Windows machine and when you unzip the downloaded file it will give you directory structure inside C:\ab as follows.

S.No. Folder & Description
1 c:/ab/bots
Stores AIML bots
2 c:/ab/lib
Stores Java libraries
3 c:/ab/out
Java class file directory
4 c:/ab/run.bat
batch file for running Program AB

Once you are done with this last step, you are ready to proceed with running this AIML Example

Step 3 - Executing this sample bot

Now clone or download this repo on your local machine.

Once done Copy the cloned test folder and paste inside c:/ab/bots folder (in your case this will be the folder where you have extracted the Program AB solution files.) Open a cmd / powershell window and execute the following command to run it.

java -cp lib/Ab.jar Main bot=test action=chat trace=false

This will show you the following output(this is a sample screen, actual output may differ):

sample start up image when app starts

aiml-sample-chatbot's People

Contributors

aloknecessary avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.