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...

All the way to deep net from surface web !!

SURFACE WEB DEEP WEB & DARK NET Do you ever wonder sitting in front of Google and thinking i almost know everything about anything of course if you know what you wanna know about wujajaja/jajaja(this is how people laugh in espanol) why did i laugh because i have to break it up to you  .                          The waste majority of thing in the internet is just a mask to hide the real thing out there . so what is this deep net by definition its quit simple "Those are the stuff of the internet you cant bring up with Google or bing and may be even duckduckgo" So "this are the places out there on internet you can't get in with out the actual URL(universe resource locator) and the permission to get in" Just think for a moment how many facebook pages ,how may company's with sensitive data  or some creepy privet youtube videos the other things that god know what to do with those and which is ...

NINTENDO SWITCH

THE LAST STAND S ince the early days of video gaming we where looking seriously more and more why to take our games with us  from the 3DS to nvidia shield that can high quality games wireless  from the pc it's self . And the day pass it's become super easy to clamp high end equipment to such a small package  just think how much your smart phone can be make use of different filed it's can act as a health care , camera , music player , and even as personal assistant if you are not interested in creepy , stupid low speed  and less a sure humans assistance . From the above idea it's not a big surprise that the next big thing in console gaming is Nintendo Switch 'a leaving room console that can be converted into a fully portable play boy to the hand '....what you just said leaving room console a bit ago? Yes I did ..cut come on guys its 2017 anything can fit in any where this days .. Okey lets get to 'switch', before that we a...