Skip to main content

Build Your On Virtual Assistant with AIML And Python

i know its been a while last i post something here....
i have your back , i got something way more interesting ...you read the title :D




The things we are gonna need for this ride


  • linux based system
  • AIML
  • PYTHON
  • XML
in short AIML is a form of XML that defines rules for matching patterns and determining responses. so every response should be written here.... dont worry i found a bunch of them on internet and i will provide



And since we are gonna work with python we need aiml in python so enter this on terminal

   pip install aiml


lets go to the code then
 
starting with XML


<aiml version="1.0.1" encoding="UTF-8">
   
    <category>

       
        <pattern>LOAD AIML B</pattern>
        <template>
            <learn>*.aiml</learn>
        </template>
        
    </category>

</aiml>
 
 
save its as k.xml


note:- see i put

<learn>*.aiml</learn> well the * looks for all aiml file in that folder so you can just add more
file there
 
now for python part 
 
 
 
import aiml
kernel = aiml.Kernel()
kernel.learn("k.xml")
kernel.respond("load aiml b")while True:
    print kernel.respond(raw_input("Enter your message >> ")) 
thats it sir you have your own Virtual Assistan

till next time take care

the link for a simple project enjoy ...
 

chatbot-clickme

Comments

  1. So, my speculation of Dave Montgomery's lecture and theory would be the same. Indeed, this was a great lecture, solid evidence, and research. machine learning courses in hyderabad

    ReplyDelete
  2. Learn the full knowledge of Python programming by registering for an AI Patasala Advanced Python Training in Hyderabad.
    AI Patasala Python Training

    ReplyDelete

Post a Comment

Popular posts from this blog

Data Type vs Return Type

Legend Of The Returned One Aha that is a question right ? Aren't they are the same thing ? At some point I honestly thought the same but actually it's not data type is not return type and return type is not data type . E ven if you are using Java php c++ or any other languages During a program we have to initialize or declare some variable for that we need to specify what data are we gonna use on that particular variable location . Then what is return type ? We seen that when we a create  or providing the definition to a function we have to specify a return type to indicate what data type is return from the function to the main function to be more specific it's know as return data type. For example void cat ( ) " the function cat is not returning any data " or int cat( ) " means cat is returning some value to the main function" Ever seen any variable as a data type of return? I haven't and please let me know...

How to reset the windows password with any linux

like i promised on my last post we are messing up the windows with linux which is free an open source by the way ....sad ->windows in every sense.. let's get to it.. you need live usb running any linux .. i prefer kali or parrot .. boot from the usb.... you might wanna get an application for this open an terminal in super user and then type in ..... apt-get install chntpw and then open the file system goto.. windows/system32/config/ open a terminal there .... and then or you have to direct your self there make sure there is a SAM file there  ... you can use ls -l for that now everything is straight forward .... Type in ..... chntpw -l sam so you get the username there .. then chntpw -u username sam pick the option   for reset the password.... have fun  

HACKING WINDOWS PASSWORD

Aright the word hacking in the title is kind of funny to me and to you ( PROBABLY ) And this blog will have a follow up to do the real cool stuff about windows password... like the wifi hack this not a big deal . first step  open up the command prompt as administrative mode.....    second step type net user this will show all the users and pick one name you need to mess up the password step three net user username * note *fill up the user name from the net user command  hit enter this  will ask you the new password type in one or leave it blank and hit enter do the same in confirm : you are good to go .... the password is hack (lol) so in next blog we are gonna make a back door . and we can do this same with out even login to the system :)