|
Posted: Dec 29, 2011 |
[ # 46 ]
|
|
Administrator
Total posts: 3111
Joined: Jun 14, 2010
|
You folks appear to be having such fun with this, but frankly it’s left me in a befuddled mist of confusion. :-\
|
|
|
|
|
Posted: Dec 29, 2011 |
[ # 47 ]
|
|
Administrator
Total posts: 2048
Joined: Jun 25, 2010
|
I am confused as to what goal Jeremy is aiming for. I genuinely cannot see ANY use for this work. The frightening thing is originally Jeremy told us it was 30,000 lines of code to produce this nonsense!
|
|
|
|
|
Posted: Dec 29, 2011 |
[ # 48 ]
|
|
Administrator
Total posts: 3111
Joined: Jun 14, 2010
|
I know. Been watching the thread, though it hasn’t made much sense to me (or any, actually). But I keep watching, hoping that something will just “fall into place”, and understanding will emerge.
|
|
|
|
|
Posted: Dec 29, 2011 |
[ # 49 ]
|
|
Senior member
Total posts: 250
Joined: Oct 29, 2011
|
It just becomes more entangled and confusing when you try to make any sense of it.
Your right Dave, having fun with it for what it’s worth
|
|
|
|
|
Posted: Dec 30, 2011 |
[ # 50 ]
|
|
Experienced member
Total posts: 46
Joined: Dec 17, 2011
|
The new results:
Input a sentence. Press Enter when done. dog. all hands on skynet.
dog The last word is: dog _______________________________________________________________
Analysis part one: __________________
letter vowel letter 1.000000 letter vowel vowel 0.000000 vowel vowel letter 0.000000 vowel vowel vowel 0.000000
Analysis part two: __________________
Using the last word of the sentence: dog, these are four possible word associations:
brushwood
bloodhound
barefooted
assorted
The result using Analysis part ones data is: barefooted
_______________________________________________________________
hands on skynet The last word is: skynet _______________________________________________________________
Analysis part one: __________________
letter vowel letter 0.333333 letter vowel vowel 0.333333 vowel vowel letter 0.333333 vowel vowel vowel 0.000000
Analysis part two: __________________
Using the last word of the sentence: skynet, these are four possible word associations:
keeping
kaffeeklatch
geek
derrick
The result using Analysis part ones data is: geek
_______________________________________________________________
Press any key to continue . . .
The new link to the source and program: http://www.mediafire.com/?wy73fquf929mo8k
I have shown you that using a word I can randomly generate a word that associates with it logically.
Now the new program decides which result matches the best, based on the percentage result.
What does this mean for chat-bots though?
For me it means that is there is four possible answers that one of them will be given based on the percentage results.
So the chat-bot should seem more realistic because of this.
But if you choose to ignore the possibilities, I understand.
|
|
|
|
|
Posted: Dec 30, 2011 |
[ # 51 ]
|
|
Administrator
Total posts: 2048
Joined: Jun 25, 2010
|
Ask anyone which one of these 4 words they would mostly associate with dog:
brushwood
bloodhound
barefooted
assorted
I think most would pick bloodhound rather than barefooted.
|
|
|
|
|
Posted: Dec 30, 2011 |
[ # 52 ]
|
|
Senior member
Total posts: 697
Joined: Aug 5, 2010
|
I took a peek at the code, and it seems you are doing some statistical comparison on the letters?
Also, perhaps you could refactor it a little to take out the spaghetti. Personally, I consider any function that’s longer then 1 screen, a good candidate for refactoring.
|
|
|
|
|
Posted: Dec 30, 2011 |
[ # 53 ]
|
|
Senior member
Total posts: 250
Joined: Oct 29, 2011
|
A function longer than a screen?
Wow!, if my functions are longer than 4 lines, I look at ways of cutting the fat.
|
|
|
|
|
Posted: Dec 30, 2011 |
[ # 54 ]
|
|
Administrator
Total posts: 3111
Joined: Jun 14, 2010
|
I think 4 lines is just a bit extreme, Laura, but a full page is certainly too long. Now a class that’s a full page long may be ok, but it had better be something that’s very comprehensive in scope.
|
|
|
|
|
Posted: Dec 30, 2011 |
[ # 55 ]
|
|
Senior member
Total posts: 250
Joined: Oct 29, 2011
|
Dave,
I was talking more in terms of JavaScript which is a bit more descriptive but then again I am not talking lines that are 80 columns wide either.
|
|
|
|
|
Posted: Dec 30, 2011 |
[ # 56 ]
|
|
Administrator
Total posts: 2048
Joined: Jun 25, 2010
|
Some of you may remember Chaktar, my self aware, thinking organism?
In the interests of research, Chaktar has coded himself to be able to do what I think Jeremy is trying to achieve.
Say “assoc word” where word is a noun to see it in action.
http://www.square-bear.co.uk/chaktar/chaktar.html
|
|
|
|
|
Posted: Dec 31, 2011 |
[ # 57 ]
|
|
Senior member
Total posts: 250
Joined: Oct 29, 2011
|
Steve,
You must be using Flash or some other third party plug-in since I can not access your bot from my IOS iPhone. I will have to wait until I get home to check it out.
|
|
|
|
|
Posted: Dec 31, 2011 |
[ # 58 ]
|
|
Administrator
Total posts: 2048
Joined: Jun 25, 2010
|
Yes, it uses Flash. Thanks for trying though.
|
|
|
|
|
Posted: Dec 31, 2011 |
[ # 59 ]
|
|
Senior member
Total posts: 250
Joined: Oct 29, 2011
|
I have built a similar function into Marie where as you ask “what is (word)? “.
The word you have entered is matched against associative word arrays and returns the meaning or multiple meanings if more than one exists. by default, it matches whole words or compound words, however it can also be configured to match letter patterns as well.
|
|
|
|
|
Posted: Dec 31, 2011 |
[ # 60 ]
|
|
Administrator
Total posts: 2048
Joined: Jun 25, 2010
|
Mine is more a quick bit of fun to see if I could do it in less than 30,000 lines of code. It’s nothing too serious, just an exercise to keep my brain ticking over during the holiday period.
Looks like someone has had a quick go at it. I have this in my chatlogs:
Human: assoc moon
Chaktar: 1 - billion 2 - satellite 3 - bookshelf 4 - snowball Ah, satellite seems to jump out at me for that one. No satellite is here. a moon is a satellite. No moon is here.
|
|
|
|