Ai Dreams Forum

Chatbots => A.L.I.C.E (AIML) => Topic started by: Freddy on March 17, 2009, 01:30:03 pm

Title: Square Bear's AIML Learning File
Post by: Freddy on March 17, 2009, 01:30:03 pm
New AIML Learning File

AIML Botmaster Steve Worswick (Square Bear) has written a file that will allow users to teach your bot new facts rather than just correcting its replies using badanswer.aiml. The user should say LEARN then the fact. For example:

Human: Learn the sun is hot
Bot: Ok I will learn that the sun is hot.

Human: Learn London is in England
Bot: Ok I will learn that London is in England.

Human: Learn a cat has four legs.
Bot: Ok I will learn that a cat has 4 legs.

Human: What has 4 legs?
Bot: a cat.

Human: What is the sun
Bot: hot.

Human: Learn the sun is hot and yellow
Bot: Ok I will learn that the sun is hot and yellow.

Human: What is hot and yellow
Bot: the sun.

Human: What is the sun
Bot: hot and yellow.

Human: Where is London
Bot: in England.

Human: What is in England
Bot: London.

Human: Learn Dr Wallace is an AI expert
Bot: Ok I will learn that Dr Wallace is an AI expert.

Human: What is an AI expert
Bot: Dr Wallace.

Human: Who is an AI expert
Bot: Dr Wallace.

Human: Who is Dr Wallace
Bot: an AI expert.

Human: What is hot
Bot: the sun.

Human: What has a cat?
Bot: 4 legs.

Square-Bear will update this file to cover more complicated knowledge such as "Learn the 2012 Olympic Games will be held in London", "Where will the 2012 Olympic Games be?". The current version of the file is available, along with all my other public AIML files at: http://square-bear.co.uk/aiml Square-Bear says, "Feel free to use it in your bots!"

Source : Alice Bot Blog - http://alicebot.blogspot.com/2009/03/new-aiml-learning-file.html
Title: Re: Square Bear's AIML Learning File
Post by: Maviarab on March 18, 2009, 12:37:08 pm
Sounds very good :)
Title: Re: Square Bear's AIML Learning File
Post by: Freddy on March 18, 2009, 02:45:07 pm
Yes, interesting that an AIML bot can now actually learn stuff even though it has to be told to learn - kinda like humans really!
Title: Re: Square Bear's AIML Learning File
Post by: Maviarab on March 18, 2009, 07:37:35 pm
More correct than you realise, over 95% of what we learn 'we are told' be it by a book, teacher, parents etc.

We actually find out very little ourselves I have found.
Title: Re: Square Bear's AIML Learning File
Post by: Dante on March 20, 2009, 11:46:45 pm
If I remember, I acutally PM'ed square bear a few years ago to create a list of his AIML (there were loads of forum posts, and Sqaure bear's AIML was like gold in a stream, you had to seive it out). Couple of months later, he adds it to his site, do I get a thanks? No....just another idea of mine. :P


Title: Re: Square Bear's AIML Learning File
Post by: Maviarab on March 21, 2009, 07:23:25 am
Must remember to get that man a medal...... ::)
Title: Re: Square Bear's AIML Learning File
Post by: Dante on March 21, 2009, 12:20:48 pm
It's alright, I'm not a boastful man......gold-plated will do fine ;)


Title: Re: Square Bear's AIML Learning File
Post by: squarebear on April 14, 2009, 04:58:20 pm
If I remember, I acutally PM'ed square bear a few years ago to create a list of his AIML (there were loads of forum posts, and Sqaure bear's AIML was like gold in a stream, you had to seive it out). Couple of months later, he adds it to his site, do I get a thanks? No....just another idea of mine. :P
lol sorry Danate. Many thanks for your continued support and inspiration. ;D
Title: Re: Square Bear's AIML Learning File
Post by: Freddy on February 02, 2013, 05:18:22 pm
SquareBear,

I'm playing with Program# at the moment.  I'm just wondering how this code works.  Does it store the data somewhere ?  Is it only meant to be used by Pandorabots ?

I can make custom tags for my app...
Title: Re: Square Bear's AIML Learning File
Post by: squarebear on February 05, 2013, 09:23:38 pm
Hi Freddy. Sorry, I must have missed this.

I think Dave Morton was looking at getting it to work with Program O but yes, it is designed primarily for use with Pandorabots, as they support the <learn> and <eval> tags. It makes new categories depending on what it has learned and stores them in memory, which takes priority over the update.aiml file. Each learned fact is only available for the user who taught it, in order that it doesn't learn nonsense like "Tony iz a gay n00b lol" for everyone who talks to it.

There is also the <learnf> tag on the subscription servers which writes its learned knowledge to a file called learn.aiml and is accessible to all users. However, this needs to be checked carefully to avoid it filling up with rubbish.

One of the advantages of using a Flash interface, is that everytime Mitsuku learns something new, she emails me to let me know and I can decide whether to add it to her permanent knowledge or not.
Title: Re: Square Bear's AIML Learning File
Post by: Art on February 06, 2013, 12:15:49 am
While thinking about chatbots and the technology behind then (at present), I thought it would be really cool if one could first establish 'enough, necessary' filters in place and then let the bot go free! It would / could absorb anything and everything that it could (within it's realm of curiousness), sex, drugs, rock-N-roll, sports, places, people, etc. Once it established limit was reached (either timed or volume as in Gigabytes), it would then start filing and cataloging everything it had learned and would, on it's own, based on the above mentioned filters, discard everything it felt wasn't pertinent or proper.

Years ago certain bots used to have a "Bad Names" file where some words were automatically added as they were found. Today's bots can do so much more in such a short period of time that such endeavors might not be possible.

Basically, instead of limiting the bot from the start, let it go, then allow it to reject that which does not fit acceptable criteria. (whatever you definition of acceptable happens to be)! :0

Just a thought....
Title: Re: Square Bear's AIML Learning File
Post by: Bragi on February 06, 2013, 08:40:04 am
Quote
It makes new categories depending on what it has learned and stores them in memory, which takes priority over the update.aiml file.
I still find the usage of update.aiml a bit puzzling. Why not simply fix the patterns themselves instead of putting the fixes in a separate file? As far as I can see, the 'graphmaster (http://www.alicebot.org/documentation/matching.html)', as described by Richard Wallace doesn't specify that the filenames should be stored in the path. Without that, it becomes impossible to know from where each pattern came from unless you reload them from the xml files all the time (which can be slow for big sets). Furthermore, how do you fix the definitions in update.aiml?
Title: Re: Square Bear's AIML Learning File
Post by: squarebear on February 06, 2013, 10:57:03 am
The new categories go into a new file as you wouldn't want things like "When I say hello, you say f**k off!" being learned and remembered for all users. If you put them directly into the update.aiml file, you would have to keep checking just in case something like that had been added. Keeping them separate makes it a lot more manageable, as you don't have to go through categories which you know to be genuine.

update.aiml is used when you are adding new categories when reviewing your chatlogs. Once it gets to about 1Mb or so, you can rename it to something else and start a new update.aiml file. The order of the files or where the patterns are stored is unimportant, apart from realising that the files that are loaded later take priority if a duplicate category is activated. This is why update.aiml is loaded last, as it has your changes in it.

Hope that makes sense.

Not sure what you mean by "fix the patterns"? Update.aiml is used for new patterns. It can be used for corrections but that would be bad practice, as you will end up with many duplicate patterns.
Title: Re: Square Bear's AIML Learning File
Post by: Bragi on February 06, 2013, 12:18:42 pm
Quote
as you will end up with many duplicate patterns.
Which is the case with Alice.
Title: Re: Square Bear's AIML Learning File
Post by: Freddy on February 06, 2013, 01:18:20 pm
Thanks for the explanation SquareBear and no worries about missing it  :)

My bot is currently only on the desktop, I'm not sure if I will make a public one.  It's more of an assistant, but I would like it to chat well.

It sounds like I have to implement my own learning feature then.  Shouldn't be too bad.  I can do "If I say this you say that" easily enough and other things.

As for online bots, yes we need to be weary of what they learn !  ;D

Is there a good editor or tool for AIML that will find duplicate patterns ?  I thought of Gaitobot editor maybe, haven't been able to download it the past few days as my ISP was having problems connecting to sites.
Title: Re: Square Bear's AIML Learning File
Post by: Bragi on February 06, 2013, 01:54:00 pm
If you import the files into my editor, it will show you a list of all the duplicate pattern in the log (just make certain that 'log duplicate patterns as warnings' is selected in the  'warnings and exception' dialog found in the debug menu.
Title: Re: Square Bear's AIML Learning File
Post by: Freddy on February 06, 2013, 01:57:45 pm
Cool, I will try that.  In fact in the end I will more than likely swap from my Aimlbot library to use your system, that's when I have figured it out.  Then I get the best of both worlds :)
Title: Re: Square Bear's AIML Learning File
Post by: squarebear on February 06, 2013, 02:06:50 pm
There used to be a file kicking around the net called shadow.exe which showed duplicate files and categories that would never be called. Not sure if it is still around though.
Title: Re: Square Bear's AIML Learning File
Post by: Freddy on February 06, 2013, 07:07:04 pm
Think I found it SB ?  Shadow Checker...

http://alicebot.sweb.cz/introduction.html (http://alicebot.sweb.cz/introduction.html)
Title: Re: Square Bear's AIML Learning File
Post by: squarebear on February 06, 2013, 09:16:23 pm
That's the one Freddy. I am not sure if it is actively worked on or supported though, as I notice it says to contact the alice mailing list which hasn't been active for years now. It's a good tool if it still works though.
Title: Re: Square Bear's AIML Learning File
Post by: NickyBlue on December 06, 2013, 05:30:00 am

I disagree to some extent... Not trying underming somebody efforts. And I beg my humble appologies in advance to you Mr. Square Bear. And Its surely not about whole topic but just few starting posts of this topic and  cause I am not a programer AIML or whatever. Moreover I know lot of my younger friends here making recreational bots for themshleves so it doesn't make that difference to them. So pls do ignore my input if it doesn't interest you I just wanna feel like saying something and this happens to be the page for start...smile.

for ex:
                  
Human: Learn the sun is hot
Bot: Ok I will learn that the sun is hot.

Human: Learn London is in England
Bot: Ok I will learn that London is in England.


            Doesn't this sound somewhat ridiculas. This "Learn" thing  destroying the very essence of dialog based training. Rather it should be just "The Sun is Hot" or You know "Sun is pretty hot." Then if bot doesn't have knowledge about it, it'll store it or else it just can say yeah! Thats how we improvise or add knowledge in our day to day handling. I today also visited AICore home page as well and it also uses things like that. I mean you are naturally hard coding it what if it in AIML or whatever way. So why don't we try simulate some real conversation like. When we say dialog based learning then it should be so. And thats what really counts. It'll simplify bot training. And normal web user can interact with it like they does in chat rooms with thier friends and can contribute to bots knowledge.
            
            
            Sure it need some labour on part of Bot designer to handle wrong utterances whether due to negligence or intentional on part of user. But it can be handled by implementing "level of trust" mechanisium. We also do thing like that intentionally or subconciously vasrious times, don't we? By the way all this london thing are not real text or are they? ;-)  cause things like that can be hard coded (imported) into bot database with single click. And he knows every capital or most of the cities of any country, no? So why try train it on such ...whatever matter.... ;-) just kidding guys. The point is not every knowledge of bot should be comprehensive to 100% to make it worthy. I myself don't know most of them. Not even thier just capitals but we got lots of internet text regarding such things, so? ...its certainly gonna make me look like a dumb fool at least in this regard :).


            
            
another thing is like:
            
Human: Learn London is in England
Bot: Ok I will learn that London is in England.

Human: What is in England?
Bot: London.


This seems to be wrong training. If I ask you What is in England?  There might be lot of different things or possible answer. Storing data doesn't meant it'll always be used within next few sentences or context. It might be asked by some other person in some other context. So the answer would be wrong. This kind of training will really gonna make you bot intelligence really artificial (fake).

Sorry to say but for me thats the defect of most of current AIML programmers not of AIML itself.



Even I read it on some topic:

Human: I have ate hot pizza with this or that topping.
Bot: Yeah hot pizza taste good. I love hot pizza. 


 ...something like that. The first part of answer kinda reasonable but "I love hot pizza" ain't make it a sensible bot. It destroys the integrity of bot as a whole. A good bot should be well aware of things or even human feelings to whatever extend one can implement but shouldn't assert that it feels same. Even if a child and his father is climbing a hill. Father knows and take cares that his son might be tired doesn't  means he get tired at the same time, isn't it? might be not exact analogy but you got my point.
 
 So no offence should be taken but this kinda AIML log won't help make a intelligent bot I think. But still there can be many defination of inteligence for many users depending upon his intentions sans the sanctity of its being right or wrong.
 
 But for me if I ask a bot on first meeting " Well I kicked Sandy I told you about yesterday" and if it skid by saying Wow! or anything out of context then I think its rather foolish reply than being intelligent in any sense. And if we are developing NLP for any sensible use its not gonna work like that. Its like all the effort gone to drain for no reason. All the folks I see interested in AIML building could have really generated a far more genuine response which would have been a sensible dataset in itself for some future programmer if not current ones. And I think with just a little difference in basic engine or database structuring it could make a huge difference if not absolute one (Your true AI). I think some people believe that Humans kinda synonym for Intelligence but is it really? Look around you, Thier lot of difference what we speak of and what we really think of it. For me intelligence is to perform things reasonably no matter what the circumtances are (odd or otherwise). And yeah everything is relative at some point to some thing. Its no rokect science that to measure something you got to have some anchor point. whether fixed or fuzzy. Anyway there can be difference in magnitude of results but all instances will be instances of intelligence especially if seen in the light (context?) of some True AI thing. I could goon lot on this but I think I must not disturb you folks unnescessary here, will conclude it somewhere else. Just trying tell my own intrepretation of things, might not be same as you all folks or even might not be true but still as my new friend Freddy says "Just take care nobody catches you" ... Am I caught? smile.
 
 
 
 





         
Title: Re: Square Bear's AIML Learning File
Post by: Art on December 06, 2013, 11:57:42 am
The standard AIML based programs usually do not allow the bot to learn from conversations. Any learning is done from the Botmaster actually typing the desired information into the appropriate file.


The next time the bot encounters the same question it can find the match of the newly acquired "learned" information and produce the correct response.

While AIML bots do not "self learn" through conversation, this is a big plus from Steve to offer this to the AIML / ALICE community.

I'm sure that with more proper wording, one could obtain better results than those in the examples.

Title: Re: Square Bear's AIML Learning File
Post by: squarebear on December 06, 2013, 12:57:01 pm
This "Learn" thing  destroying the very essence of dialog based training. Rather it should be just "The Sun is Hot" or You know "Sun is pretty hot." Then if bot doesn't have knowledge about it, it'll store it or else it just can say yeah!

My learn.aiml file is around 6 years old now. I amended it a few years ago to be able to handle things like "My shirt is red. What colour is my shirt?". This was necessary for me to enter the Loebner Prize as no judges would say "learn" at the start of the fact.
Title: Re: Square Bear's AIML Learning File
Post by: Art on December 07, 2013, 12:42:30 am
Steve,

Interesting question: Since you and I both speak English, my in American English and yours is British English. We all know that there are many differences and disparities between the two. How is this anomaly handled in your AIML code? Did you breakdown all known words of each?
color - colour, etc. Then you've got words like whilst to our while and spelt to our spelled. There's a lot to be considered. Not being a real AIML/ALICE maven, please enlighten me on your method of dealing with this.

Thanks!
Title: Re: Square Bear's AIML Learning File
Post by: paphus on December 07, 2013, 06:24:13 pm
I'm not AIML expert, but two different spelling for a single meaning should not be difficult, you just associate both words to the same meaning.  What I find difficult is that most users, especially online, cannot spell... or type so most words are not spelt or spelled correctly.  You almost need to put the text through a spell checker before processing it anyone know of any good open source spell checkers?

International language is more difficult.  I was working on that this week for BOTlibre, pictorial asian languages (Japanese, Chinese, Korean) make things a lot more difficult.  You have to detect the pictorial languages and parse and print the text differently, no spaces between words, single character words, different punctuation.  Traditionally these languages go up to down and right to left, that would make things even more interesting, thankfully most online text is left to right.

Grammar is even more complex, as different languages have different grammar rules, different tenses.  I think the best solution is to just give the bot the words, and let it figure out the grammar.  But that would take lots of training, given most people spend years learning a new language, and most never get very good at it if it was not their mother tongue.



Title: Re: Square Bear's AIML Learning File
Post by: squarebear on December 07, 2013, 10:48:24 pm
We all know that there are many differences and disparities between the two. How is this anomaly handled in your AIML code? Did you breakdown all known words of each?

Art - It's even simpler than that. If someone says "I have a red shirt" or "I have a circular table". The pattern is created with "WHAT _ IS MY (object)", so it can handle "what xxxxx is my (object)" whether xxxxx is "color", "colour", "shape" or even "fkushufbvsdufbvsdkb".

paphus is correct though, you could have <srai>s that converted color to colour and so on.
Title: Re: Square Bear's AIML Learning File
Post by: Freddy on December 11, 2013, 03:49:05 pm
I'm not AIML expert, but two different spelling for a single meaning should not be difficult, you just associate both words to the same meaning.  What I find difficult is that most users, especially online, cannot spell... or type so most words are not spelt or spelled correctly.  You almost need to put the text through a spell checker before processing it anyone know of any good open source spell checkers?

You already alluded to one solution in the same paragraph. I mean isn't it possible to SRAI common spelling mistakes ?

So "helo" becomes "hello", "dispite" becomes "despite" and so on.

Something in the back of my mind tells me this has already been done. Maybe SquareBear knows of something ?

It's a lot of work though. Did you try Google for a spell checker ?

I see one problem with the spell checker and that is if you use it to replace words you might end up with some funny auto-corrections.
Title: Re: Square Bear's AIML Learning File
Post by: Freddy on December 11, 2013, 03:52:49 pm
Here's something : http://knytetrypper.proboards.com/thread/192 (http://knytetrypper.proboards.com/thread/192)
Title: Re: Square Bear's AIML Learning File
Post by: Art on January 26, 2014, 04:24:20 pm
Hi Freddy. Sorry, I must have missed this.

I think Dave Morton was looking at getting it to work with Program O but yes, it is designed primarily for use with Pandorabots, as they support the <learn> and <eval> tags. It makes new categories depending on what it has learned and stores them in memory, which takes priority over the update.aiml file. Each learned fact is only available for the user who taught it, in order that it doesn't learn nonsense like "Tony iz a gay n00b lol" for everyone who talks to it.

There is also the <learnf> tag on the subscription servers which writes its learned knowledge to a file called learn.aiml and is accessible to all users. However, this needs to be checked carefully to avoid it filling up with rubbish.

One of the advantages of using a Flash interface, is that everytime Mitsuku learns something new, she emails me to let me know and I can decide whether to add it to her permanent knowledge or not.

Steve, if this is so couldn't a relatively easy routine be written to allow the user to have or keep a secret with the bot?  Other users would (hopefully) never know and the bot could be asked to reveal the secret at a later date to the original (secret holder) user. Interesting.

Could this also be done with AIML based AlICE bots?
Title: Re: Square Bear's AIML Learning File
Post by: squarebear on January 26, 2014, 08:32:48 pm
This could be done with AIML quite easily.

My secret is *
could call a template like:
<think><set name="secret"></star></think>

Then you could say "what is my secret" and use <get name="secret"/>.
Title: Re: Square Bear's AIML Learning File
Post by: Art on January 26, 2014, 10:48:42 pm
OK, but would it be "User specific"? or could the "secret" be read by any other user? (aside from going through the data files).
Title: Re: Square Bear's AIML Learning File
Post by: squarebear on January 27, 2014, 08:44:39 am
No. That would just be user sepcific. Variables are only kept and accessed by the person who sets them. Otherwise, if you were to say my name is Steve and set "name" to Steve, everyone would access this variable and so the bot would think everybody's name was Steve :)
Title: Re: Square Bear's AIML Learning File
Post by: Art on January 28, 2014, 01:35:09 am
I see. So hypothetically, could a number or special 'code' be assigned or shared between the bot and the user so that no other users might use sneaky tactics like you mentioned? Kind of difficulty to keep it simple yet secure at the same time, like so many things in life. ;)

Title: Re: Square Bear's AIML Learning File
Post by: squarebear on January 28, 2014, 08:59:07 am
Yes definitely.

Most of the things Mitsuku learns are nonsense. Things like "Tony is gay - Who is gay?". I wouldn't want this to be shared among other users, so yes, all variables are purely for the user who sets them.
Title: Re: Square Bear's AIML Learning File
Post by: silvershark on February 03, 2014, 02:25:59 pm
Ive been playing with a learning Alice for a long time. Since 02 id say... I have a learning progD  that I did a little modification too. I loved that development. THANK YOU squarebear. I think it was a major step forward when that came out. At the time I had a script that would watch a yahoo chat room and learn quietly. I will admit that was a task clean up though. If I remember correctly I modified the source to write the author on each learned file and maybe the date too.. So I could ask my bot "who told you that?" its been a while. Thanks again!
Title: Re: Square Bear's AIML Learning File
Post by: squarebear on February 03, 2014, 08:46:44 pm
I'm glad it was some use to you. Feel free to expand it so your bot can learn more types of things. For example, I have an extra entry to cover things like:

John said , "You are cool."
What did John say?

The possibilities are endless!
Title: Re: Square Bear's AIML Learning File
Post by: NickyBlue on July 16, 2015, 02:46:30 pm
Hi Steve! Freddy and all !....me NickyBlue on troll again....wanna ask some advice so choose this steve's topic...I think its good too since steve kinda one of the most active thinker of this field...right steve?

secondly he's Alician....AIML thing!...but seriously I dont care...AIML or not!....smile....what makes him interesting is unfortunately or by some destiny...we happens to be on locker horns on the first day of our introductions due to our different perspectives about certain things....reasons his he knows I still do mine.....hahaha!....u know steve I still got those post copy backup you deleted of mine....I m gonna put them along with trav stuff at Cosmos....for all globs to see....as part of my life project submission to them LOL....anyway talking about reasons...and sometimes they so different that talks can not even exist...believe me....relics of that Mr Dave and Steve's have still preserved at their forum chatborg.org for anybody to see....smile.

but I suspect if anybody even needs that....seems like unnecessary hidden popularity I have been blessed with ;)

Anyway less that senseless one occasion thing alone...overall I can at least pass him as nice young stranger I suppose...to make acquaintance with...if nothing more....right steve? ;)

I like your name steve better...maybe told u before :)

Anyway so I thought maybe this young gentleman wud like the idea or can think of some use of it for himself too...I dunno mind....maybe I can be of lil help to my this young friend after that lil initial senseless clash....but believe me I I wasn't even talking to you that time....I know my audience well enough no matter what camouflage they try hide in....its like I dunno ppl I lived with or what? :)

lets beat the unnecessary....the quess....but the ques is not just restricted to AIML thing but finding some probable solution to the problem. :)

Only thing for what it is here is the case of similarity....to make bot intelligent you increase its interpretation power so you do with these kinda software....IDE's nd all....there you deal with words here u with machine code or logic code in general....but the main thing is to link them right? :)


Okay when talking about restricting things lets say we restrict domain to understanding a program....what it does or do? right?  But I fear if one can isolate thing too much like that :)

sort of dissassembly of a program.....like we say we get any piece of code and can tell what it is and what it does or any complications. But all these things are not just about decompiling but compiling as well......they just seem different cause of the way you perceive them.....for example to build a better compiler you need all those core routines....they are the same decision you take while decompiling a program....that is basically you understand its construct....build a representation of it.....compiling decompiling are just outputs formats in a sense....so all things/logic implementations that you need to build a decompiler is that you need to build a compiler of same decision making capabilities.


Now nobody say that decompiling a program is impossible thing.....so how processor executing it in first place. It perfectly simple to decompile a program into higher language code....logical code I mean what it is....nothing kinda magic....but what makes it attributed with impossibility is its loss of function names...which aint system level...means not properly documented....but who needs that kinda decompiling? The programs that you had source code on public domain published that one cant properly understand or work with....with the help of current tools of the trade...Your mighty Visual Studio of 2010 time even dont know the meaning of context menu...the term devised by its own Creator Company - Microsoft the international giant....humare yahan ke bhi bade smart IITians hain usme....note kat rahe hain khudha phelane ka....LOL....and you talking about decompiling some program for that purpose?  Only thing that gonna achieve by it at least with current tools is to waste your time....that you might otherwise could possibly meant you can coin one of your own.

Programming in itself not that a complicated concept....only few titbits here and there maybe....specific cases.... but your complicated unnecessarily bloated programming tools do make it that way more of it....but I suspect those tiotbits are complicated cause they are projected to be like that than any other meat in it ...I suspect :)

But with this detecting/understandably capabilities I think we might possibly make compiler more productive easier to handle....programming language less complicated and simple.

In nullset I m thinking of some simple stripped down version of C# plus some patchup to fill valid gaps....and a IDE intelligent and descriptive enough that you don't have to learn the language but to start constructing program in it....if you understand common logic....yet flexible enough to let advance programmers to tune any statement to machine code level if the want to just from code editor screen itself.

You can switch view among different but still kinda similar popular languages..like C, C++, C#, VB,  java or some its variant....ability to create a new variant of any language through form based interface itself....means where we can edit /construct visually the IDE parser file (data) on the fly. But sure you can compose machine code as well for script snippets np. :)

scripting you can do in any supported language....and languages should be inter convertible ...totally auto or with lil adjustment through form based interface.....nothing that complicated I suppose they just formal languages right? You domain of bot software or whatever magical AI is too broader for this....so lets get started on this and see if we can expand it to full flash bot or at least anyuse for this restricted domain software....but for guessing the names of whatever some piece of code doing need lil more that that I fear....and certainly here not talking from decompilation angle :)

So my main question for you Mr Steve is how can we make use of AIML logic or whatever AI logic to solve this problem.....I need a program which can understand a unknown code or whatever it is fed....of course talking about x86 or windows (specific code....u dont worry about the cross platform thing.....all is needed is to somehow detect without any errors that what possibly is this routine and create a summary of that thing whatever is asked to that program in a human listenable format and possibly delivered through TTS engine. With a software like this  I think lilttle use of TTS will be very efficient and valuable on some occasions for such info overloaded software....more over less disturbing....you don't need popup disturbing your flow of vision during the analysis process all the time....voice recognition demands less power too plus you can process it without losing your much focus from the visual information flow...kinda natural multitask.....last of all...no need to say whenever u hunting (looking up) your code down during development processes for whatever lil reason you are basically analyzing even your own code less when you looking it some unknown piece of code...whether official or some open source stuff :)

but then again if you view it in a way all this not that important fo build a worthwhile compiler....its a added feature but thats where I want you to look at....its far more than that....all this logic is embedded in everything else in lil different roop though...so I though might be good discussion issue between two completely different background ppls....but yet everything is just struct....cause its the simple logical way to think of categories...right?   but struct can be make alive with attributes supported by any type of code logic ...maybe I suppose so? ;)

Like I see all language same...procedural lsnguages....thats why they called that right....XML, HTML, SGML, AIML categories, struct, enum, class, function, com, dcom every thing same construct with liltlle more or less flavors/attributes...isn't it?

You see how I see it...C is a simple representation of assembly/machine code...liltle simpler (more macroic) construct...i.e. function...variables... this and that....C++ brings on a good new layer of protection or categorization layer to those primitive constitutes...i.e. variables and function in a bunch level....so now you can easily construct/manipulate things in category/bunch....easier mechanism to handle large mess...u know likeness blurs sharpness or contrast...a attractive/attentive attribute needed to bring attention to something...or to remember

rest after that all garbage...lil less or more in the name of different technology....like everybody finds some ooops of his own to sell instead of implementing it really within a compiler or IDE....they wrote book on jus abstract nature of object oriented whatever...but never found around time to upgrade their own tools...new the better....at least waste their time learning that only...not a bad strategy  LOL


what microsoft doing now in the name of mighty dot net should have been in 3.1 days if they wanted too...even VB came lil promising in the start then got infected with all kinda technological viruses....smile

I even now after all these yrs hardly can understand why the hell they do go through that lengthy way of doing thing foolishly when they got the best brain of the world?....they dont lack intelligence....you need a brain like einsteen to even create smart mess of that size that our honorable elites had created....why?...I dunno...that for me only Mr. Bill Gates can tell or Mr Trav (my buddy).....he seems to know lots of secrets about him u c. Maybe thinking of arranging a meeting of our dear friend trav with him someday...wanna know the outcome of that meeting u see. Gonna be real nuclear bomb or phisadi only time will tell LOL

still editing though...will complete the post soon...will bring lil more elaborate documentation ...but that I wud have to compile first ;)

anyway nice meeting you back guys....hope u not anyway pissed off by me....hi dave u too! I forgot your other nick here  :)
Title: Re: Square Bear's AIML Learning File
Post by: NickyBlue on July 16, 2015, 07:37:47 pm
Well forgot I m not elite member of this forum anymore....old img loading problem....I think I better should construct some outline at my Cosmos forum...then I'll come back for some discussion....that way my friend freddy wont be having any problem....right freddy? ;)


I had created a new forum about this there....just give me few days cya :)
bye
Title: Re: Square Bear's AIML Learning File
Post by: NickyBlue on July 16, 2015, 07:43:50 pm
And yep! ...as always...a lil nag for my friend Steve  ;)

Human: Learn the sun is hot and yellow
Bot: Ok I will learn that the sun is hot and yellow.


can be easily stripped down to...."Ok the sun is hot and yellow then."....even if its all jus about cosmetics...why always paint contrastic colors (joker painted)...they can be lil natural too...right?....sometimes?...doesn't hurt or do they? :)

anyway yours doesn't even make any proper sense if taken even lil strictly/sensibly....sorry to say U standard english fellow! LOL

But I mean to say is....the more intelligent you want your bot to be the more you would have to care for these things....right?....they are the basic primitives no?...on which your next level of refined inference logic would run....you not thinking or creating new database everytime or do you?

Anyway we gonna support AIML parshing just for you in that np ;)

that's what the whole idea is....to construct a visually modifiable LanguageRules file based generic parsher....I think creating support for a new similar procedural language wont take more then few minutes to tweak some elements or at most you just have to type a list of  every possible statement  template...thats all....and since most of the constructs/things are similar with lil denotion difference in all these languages so wont e that much a problem ...wud it be? We just need a day or two for discussion here...a few days for coding its editor...I ll do that with just a marginal help...I still not a programmer you see...I think we can use C# for it.....and being all here having devised there own kinda scripting language....we are ready to test them...like you can create language file for your AIML I'll do it for C, someone C++ Freddy can take C#....or XML...you dont even have to do it all at a time...you can do it in steps....all that is parser will run only under those rules defined....but first thing is to draw the plan....can it be feasible?

main idea is to create a form based front end to XML or binary database language file in effective and easy efficient enough manner...like any normal C++ knower can create a parser for that language or lil variation to it through that form in minutes without worrying for any real programming underneath...most of it I mean....if we overlooked something he just have to code that specific routine for that part there itself. Main thing is to make them inter-convertibles...but sure this previous tactics can help us ease things if not automate all :)....and all this doesn't look similar to multi lingual bot no? I mean if ever someone ever think of designing some...right? :)

waisey bhi...after all it all just conditional branch (if) + loop instruction (jmp previous) that create all variations of program right?

Loop is nothing more than category in a sense a zipped version....you can easily expand A 10 count loop to repeating its 10 times flatly...no?....now variables or assignment statement and thier values are kinda nouns/adjective things....arithmetic/control-flow ones kinda kriya...I mean verb....right? So whats the difference...we still talking about NLP ...right?...it aint that different then all this! :)

Let me put it this way...XML or whatever XLT format specification you call...your AIML besed on that..right?.Lets see if that format can represent a full blown program or not....that's what we have to visualize here....o do some modification to it if needed....then you implement it tag like XML/XSLT whatever file or binary C/C++ structure is upto the specific implementer.....but I can write you so-so machine encoder/decoder for the project as well...Linker/EXEComposer part.... mean might not be the best quality but good enough by any whatsoever standard...that much I can do....I suppose even if aint in touch with that thing for so long....good old dos days those where...mine where actually not that but 1995 days but it was time when I ever got my first PC which only came loaded officially with just DOS 6.22 ...so called....not sure why though?...with just two main tools debug.exe and a basic editor/edit program ...plus a virus called Die Hard 2...to use that tool for...specimen send by globs party u c  LOL....Now what I did with those three things in a bolted room for whole month or two...with no prior abcd of computer language or thing of any sort....only it knows or I myself...Most even hardware administrators/programmer/trouble shooters might not have booted system in their whole life that my system got booted within just those few days or a month...@few seconds....its hard drive failed within few months...PC Company got closed down within a year....smile

Moreover sone pe suhaga...somebody secretly tried teach me computers starting from basic? I seriously suspect that!  ;)  I tested that theory it completely failed  LOL

but last of all...all thing said no denying this is a huge undertaking...a big project...but I have only interest in tweaking with some analytical logic engine.....the who  wants the working product will develop it....I'll be just happy enough with the parser thing alone...its fine by me if my program can run only within my IDE but it should run...like the way I want it to be...or present the information. But no running away from doing my part if anybody wants to take it to that level....Rest I think I have been around few sites all these yrs...if they collaborate...things can be pretty easy to start up....like there some hacker kinda forums I know...some RCE/woodman thing....they pretty good at those things....they can help with relevant info if not anything else....that's what one wants.....straight info....so that you don't have to filter it though lots of blotted pages from vast net....you know what you want and who can be best provider....and I think its good enough track to follow....no? :)

thank you...rest after I bring in the prelim synopsis u can say? ;)