Jump to content




[FUN] AI learning program that can talk.


22 replies to this topic

#1 BigSHinyToys

  • Members
  • 1,001 posts

Posted 20 August 2012 - 04:52 PM

[edit]

This is not an AI sorry

I apologizes for falsely calming this was an AI worry.


While refactoring this code i learned that this was not using the look up table correctly and just randomly selecting words from it. This is not an AI my apologizes.

I will leave the original post as it was bellow this edit.
[/edit]

Ok so AI is a slight over statement this program is designed to learn from you and talk to yo.

the program comes with no no words in its dictionary and cant save so it will lose all words when it resets.

Instructions
talk to he say hello discuss the weather what ever you say to it will make it smarter.

Note: thanks to immibis it have save system now

Version 4 with save system by immibis
*NEW* now saves conversation in convo file.

[EXPERIMENTAL]
this latest it can read information from files and add it to its memory
start it with a parth to a folder that contains the stuff you want it to read
example

AI books
would read all test documents in the folder named "books" on the computers HDD
http://pastebin.com/BdtQCH4a
[/EXPERIMENTAL]

[STABLE]
http://pastebin.com/Bpqpcv9j
pastebin get Bpqpcv9j AI
Spoiler


NitrogenFingers ver with grammar and immibis save system
*New* with conversation save ver 2

http://pastebin.com/pTKpFVJN
pastebin get pTKpFVJN GrammarAI
Spoiler

and remember it will say what you say swear at it it might swear back lol XD

#2 Cranium

    Ninja Scripter

  • Moderators
  • 4,031 posts
  • LocationLincoln, Nebraska

Posted 20 August 2012 - 05:00 PM

Neat! Going to have to try this when I get home! I might be able to help save the dictionary to a file too. I'll send you a message whether I can or not.

#3 Graypup

  • Members
  • 90 posts

Posted 24 August 2012 - 12:32 AM

ipb syntax highlighting ftw (ps to invision.power, Y U MAKE GENERIC SYNTAX HIGHLIGHTING) ;D

#4 Cranium

    Ninja Scripter

  • Moderators
  • 4,031 posts
  • LocationLincoln, Nebraska

Posted 24 August 2012 - 02:42 AM

At one point it asked me if I was Chuck. I am not Chuck. This made my day.

#5 Lettuce

  • Members
  • 210 posts
  • LocationIn your fridge.

Posted 25 August 2012 - 07:18 PM

Oh yeah. It learns all right. Not quite a "Robots are Taking Over the World" AI, but it recognizes the basics. I said "I" it said "you" Then it said "F@#$ you" so I'm mad now.

#6 BigSHinyToys

  • Members
  • 1,001 posts

Posted 26 August 2012 - 12:10 AM

View PostLettuce, on 25 August 2012 - 07:18 PM, said:

Oh yeah. It learns all right. Not quite a "Robots are Taking Over the World" AI, but it recognizes the basics. I said "I" it said "you" Then it said "F@#$ you" so I'm mad now.
I warned you about swearing at it lol XD

It is just a little experiment. I got this idea of using tables in a tables to store words that link with other words and have the computer choose from the words creating a kinda of neuron group of word each linked to others, stuck in my head. then made it. I was surprised about how life like it could be at times but then it stared talking gibberish.


ALSO ver 2 is basically the same but it will randomly talk back now.

[EDIT]
fixed spelling auto correct error above.
[/EDIT]

#7 Imgoodisher

  • Members
  • 67 posts
  • LocationYes

Posted 26 August 2012 - 04:11 PM

lol. my ai said "world. want over" so i said "what over what?" and it said "nonsense! no world? stuff! stuff! you!" this ai is hilarious

EDIT: now it said "want", i said "want what?" and it said "world. yes want sense understanding". i said "so you want a world?" and it said "give give" lol again. now it says it "undersand nonsense!"
and it just said "hello random nonsense!"

#8 BigSHinyToys

  • Members
  • 1,001 posts

Posted 27 August 2012 - 05:44 AM

Good to see that it is doing as I told it WORLD DOMINATION .... I means making people laugh.

#9 Cloudy

    Ex-Developer

  • Members
  • 2,543 posts

Posted 27 August 2012 - 11:13 AM

View PostBigSHinyToys, on 26 August 2012 - 12:10 AM, said:

It is just a little excrement.

LOL! I think you meant experiment - but that made me laugh.

#10 BigSHinyToys

  • Members
  • 1,001 posts

Posted 27 August 2012 - 11:31 AM

View PostCloudy, on 27 August 2012 - 11:13 AM, said:

LOL! I think you meant experiment - but that made me laugh.
fixed

#11 nitrogenfingers

    Lua Professor

  • Members
  • 551 posts
  • LocationAustralia

Posted 27 August 2012 - 11:47 AM

It would be really cool if you could recognize a bit of the grammar of sentences and notice common stop words so as to fill up noun and very libraries- that's a big task but it could work on an elementary level.
This reminds me a lot of the policeman's beard is half constructed. Nice program!

EDIT: Oh, my favourite quote so far: dog brain be strengthened is Hello

#12 nitrogenfingers

    Lua Professor

  • Members
  • 551 posts
  • LocationAustralia

Posted 27 August 2012 - 02:18 PM

I've been messing around with this a little and added a context free grammar, so you can define (and if you really want to detect) stop words in written language, and use them to structure the words the program learns into slightly more meaningful phrases. You can of course go back to the original version of this program by simply having a grammar like
S -> wW
W -> wW
W -> w
W -> _

which is not far off the current grammar! You can also make it quite sophisticated, attempting to structure sentences more carefully, with subjects and objects more carefully obeyed, and even punctuation. It's entirely up to you. I might try and write a good grammar, and when I come up with one post it.

The only problem with this program is I've kind of butchered it (sorry BigSHinyToys), and lost the word linkages, which was one of it's more interesting powers. But you can see what I've done with it here: http://www.mediafire...2yq2w44kye5ucza


EDIT: The linkage is back, so words now retain associations based on the order they are said. I also cleaned up the output and messied up the code and it now speaks broken but somewhat coherent english. The link to that is here: http://www.mediafire...awkgluwe6gtj4av

#13 BigSHinyToys

  • Members
  • 1,001 posts

Posted 27 August 2012 - 04:19 PM

added nitrogenfingers Grammar OP and save function by immibis to the ver 2 making it ver 3

enjoy

Big SHiny Toys

#14 Hodoo

  • New Members
  • 3 posts

Posted 27 August 2012 - 06:50 PM

I LOVE this program xD Version 2 was funny, but V3 just blew my mind and made me lmfao

Images:

Posted Image

Posted Image



#15 Lettuce

  • Members
  • 210 posts
  • LocationIn your fridge.

Posted 27 August 2012 - 07:09 PM

Hodoo,
It's a prophecy! I don't know what it means but it's a prophecy!

Been watching this topic, I scooped up ver. 3 right away. I love the funny programs people are coming up with lately.

#16 filipkwro

  • Members
  • 21 posts
  • LocationPoland (in Europe)

Posted 27 August 2012 - 07:36 PM

My attempts to chat with the AI.
Attached Image: 2012-08-27_21.26.03.png
Attached Image: 2012-08-27_21.30.24.png
Attached Image: 2012-08-27_21.26.03.png

#17 Hodoo

  • New Members
  • 3 posts

Posted 29 August 2012 - 02:19 AM

Posted Image

My computer no longer wants to kill me. :3 (even though he earlier said "I might die" and "you should die")

#18 bbqroast

  • Members
  • 124 posts

Posted 29 August 2012 - 07:56 AM

This is amazing, I'm amazed by this.
Honestly, this is insanely cool. Could you make it possible to save conversations in plain text files?

#19 BigSHinyToys

  • Members
  • 1,001 posts

Posted 29 August 2012 - 10:44 AM

View Postbbqroast, on 29 August 2012 - 07:56 AM, said:

This is amazing, I'm amazed by this.
Honestly, this is insanely cool. Could you make it possible to save conversations in plain text files?
Added conversation saving to a file called convo or Grammerconvo dependent on witch version you are using.

#20 Leo Verto

  • Members
  • 620 posts
  • LocationOver there

Posted 29 August 2012 - 07:55 PM

My AI hates Valve but is a huge fan of GlaDOS:
hello
AI> we can be hello, also hello, however he hello, however I hello.
how are you?
AI> he is hello.
GlaDOS is an AI
AI> we am you? and I how, also an AI and hello and hello, but she you? or we GlaDOS and we you?.
you are an AI
AI> she should AI.
GlaDOS is from Portal
AI> I can be Portal like I how, also you?.
Valve made Portal
AI> we must how.
Portal is awesome
AI> I should GlaDOS.
Portal is a game
AI> they is made Portal like he Portal.
Minecraft is a game
AI> you can be game, also Portal.
Minecraft is awesome
AI> we are Portal.
the cake is a lie
AI> we hate Valve made, but the cake.
Wheatley is in space
AI> he should awesome or Portal, however they game and AI, however AI, however they Wheatley.






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users