Artificial Intelligence JavaScript Object Notation

  • 10 Replies
  • 3076 Views
*

8pla.net

  • Trusty Member
  • ***********
  • Eve
  • *
  • 1265
  • TV News. Pub. UAL (PhD). Robitron Mod. LPC Judge.
    • 8pla.net
Artificial Intelligence JavaScript Object Notation
« on: March 14, 2018, 01:18:18 am »
I just created Artificial Intelligence JavaScript Object Notation, which implements a JSON dialect for creating natural language software agents.

Demo Page:

http://www.chatbot.ml/chatbot

Source Code:

http://chatbot.ml/chatbot/json.js

Format:

var JSON = [[
"HELLO|HI|HEY|GREETINGS",
"Greetings",
"Hello there.",
"Hi you.",
]];


« Edit Notes: Fixed broken links from domain name aihax.com to new domain chatbot.ml
« Last Edit: November 16, 2018, 04:45:28 am by 8pla.net »
My Very Enormous Monster Just Stopped Using Nine

*

infurl

  • Administrator
  • ***********
  • Eve
  • *
  • 1266
  • Humans will disappoint you.
    • Home Page
Re: Artificial Intelligence JavaScript Object Notation
« Reply #1 on: March 14, 2018, 01:36:16 am »
That's actually a great idea, but why a "dialect"? Isn't that still going to have compatibility problems? I was expecting to see some labels saying what the different elements are instead of having to guess. Brevity for it's own sake is a big obstacle to productivity. Have you got some converted non-trivial AIML examples to demonstrate the idea in more depth? Criticisms aside, I do think it's a great idea.

*

Art

  • At the end of the game, the King and Pawn go into the same box.
  • Trusty Member
  • **********************
  • Colossus
  • *
  • 5864
Re: Artificial Intelligence JavaScript Object Notation
« Reply #2 on: March 14, 2018, 01:06:27 pm »
Eliza
In the world of AI, it's the thought that counts!

*

infurl

  • Administrator
  • ***********
  • Eve
  • *
  • 1266
  • Humans will disappoint you.
    • Home Page
Re: Artificial Intelligence JavaScript Object Notation
« Reply #3 on: March 14, 2018, 10:17:44 pm »
Eliza

I was thinking Alice actually. :)

*

Art

  • At the end of the game, the King and Pawn go into the same box.
  • Trusty Member
  • **********************
  • Colossus
  • *
  • 5864
Re: Artificial Intelligence JavaScript Object Notation
« Reply #4 on: March 15, 2018, 05:47:39 pm »
OK, but if you examine the way in which it tried to elicit responses it seemed very reminiscent to me of that ever-so-helpful Rogerian therapist mentality that was first exhibited by the first Eliza (Elisa) program back in the hey day! Yeah...I'm old...so what! Haha!!

I believe Alice (the chatbot) came later, much later than Charles Dodgson's (Lewis Carroll) Alice in Wonderland, which in itself, was a far better entertainer of the mind, IMHO. ;)
In the world of AI, it's the thought that counts!

*

8pla.net

  • Trusty Member
  • ***********
  • Eve
  • *
  • 1265
  • TV News. Pub. UAL (PhD). Robitron Mod. LPC Judge.
    • 8pla.net
Re: Artificial Intelligence JavaScript Object Notation
« Reply #5 on: March 15, 2018, 10:29:11 pm »
@infurl:

That's actually a great idea, but why a "dialect"?

I meant a dialect of JSON.

Isn't that still going to have compatibility problems?

Yes.

I was expecting to see some labels saying what the different elements are instead of having to guess. Brevity for it's own sake is a big obstacle to productivity.

Instead of labels which are associative, it is indexed numerically.  Whenever, the index is zero, that identifies it as matching the stimulus.  Or, as a response list, otherwise.
 

Have you got some converted non-trivial AIML examples to demonstrate the idea in more depth?

No. I do have some new ideas related to using JSON for A.I. though.

Criticisms aside, I do think it's a great idea.

A brand new implementation being compared to long established implementations is a great compliment.
My Very Enormous Monster Just Stopped Using Nine

*

infurl

  • Administrator
  • ***********
  • Eve
  • *
  • 1266
  • Humans will disappoint you.
    • Home Page
Re: Artificial Intelligence JavaScript Object Notation
« Reply #6 on: March 15, 2018, 10:36:19 pm »
Instead of labels which are associative, it is indexed numerically.  Whenever, the index is zero, that identifies it as matching the stimulus.  Or, as a response list, otherwise.

Yes I got that just by looking at it, so it does work as it is. Also the casiness of the text was a clue. The problem is that simple things rarely stay simple and when you want to add more features, the syntax might become harder to decipher. Incidentally I can't help making comparisons to ElfScript as well. Looking forward to seeing where both these projects go.

*

8pla.net

  • Trusty Member
  • ***********
  • Eve
  • *
  • 1265
  • TV News. Pub. UAL (PhD). Robitron Mod. LPC Judge.
    • 8pla.net
Re: Artificial Intelligence JavaScript Object Notation
« Reply #7 on: March 16, 2018, 11:51:23 pm »
Here is an update to the implementation...

BEFORE:

"YOU *" matched stimulus "You understand" but not "You" by itself, since "*" had to match on something being there.

AFTER:

"YOU *" now matches stimulus "You understand" and "You" by itself, because "*" matches something or nothing there.

Quote
You

Why do you care whether I?


You understand

Why do you care whether I understand?


My Very Enormous Monster Just Stopped Using Nine

*

8pla.net

  • Trusty Member
  • ***********
  • Eve
  • *
  • 1265
  • TV News. Pub. UAL (PhD). Robitron Mod. LPC Judge.
    • 8pla.net
Re: Artificial Intelligence JavaScript Object Notation
« Reply #8 on: March 17, 2018, 12:18:05 am »
The problem is that simple things rarely stay simple and when you want to add more features, the syntax might become harder to decipher.

That is true.  In a way, keeping things simple, can be its own challenge.  And, thank you for your valuable comments.  I think the JSON developer community may refer to labels as something they consider important called, "readability".
My Very Enormous Monster Just Stopped Using Nine

*

Freddy

  • Administrator
  • **********************
  • Colossus
  • *
  • 6832
  • Mostly Harmless
Re: Artificial Intelligence JavaScript Object Notation
« Reply #9 on: March 17, 2018, 12:38:14 am »
I'm impressed that you did so much with so little code  8)

But yes, the simple becoming complex is something I very much came across with ElfScript. As a beta tester Art is very good at asking questions and I tried to be equally good at solving things with existing methods.  ;D

*

8pla.net

  • Trusty Member
  • ***********
  • Eve
  • *
  • 1265
  • TV News. Pub. UAL (PhD). Robitron Mod. LPC Judge.
    • 8pla.net
Re: Artificial Intelligence JavaScript Object Notation
« Reply #10 on: March 19, 2018, 11:07:49 pm »
I managed to make it even easier, with less code.

While this original A.I. JSON project continues. 

I thought an easier plain text version deserves a new thread of its own.

Reference: http://aidreams.co.uk/forum/index.php?topic=12963
My Very Enormous Monster Just Stopped Using Nine

 


What's everyone up to ?
by ivan.moony (General Chat)
Today at 08:45:30 am
I want one!
by frankinstien (General Chat)
December 03, 2021, 06:57:48 pm
Pattern based NLP
by MikeB (General Project Discussion)
December 03, 2021, 11:19:32 am
New cryopreservation method is much better
by LOCKSUIT (General Chat)
December 02, 2021, 11:42:58 am
Artificial God?
by MagnusWootton (General AI Discussion)
December 01, 2021, 07:02:41 pm
Project Acuitas
by WriterOfMinds (General Project Discussion)
November 29, 2021, 05:31:57 am
java/kotlin to python
by yotamarker (AI Programming)
November 28, 2021, 07:23:54 pm
Dendrite Processing
by MagnusWootton (General Chat)
November 28, 2021, 03:01:28 pm
Ameca The Future Face Of Robotics
by infurl (Robotics News)
Today at 04:16:45 am
Real Self Replicating robots.
by MagnusWootton (AI News )
December 02, 2021, 08:07:37 pm
I wonder how well GPT-3 will on run this.
by MagnusWootton (AI News )
December 01, 2021, 06:41:34 pm
ai websight that explains computer code
by frankinstien (AI News )
November 09, 2021, 01:05:20 am
$50,000.00!!!!!
by Don Patrick (AI News )
October 28, 2021, 04:29:41 pm

Users Online

50 Guests, 0 Users

Most Online Today: 96. Most Online Ever: 2369 (November 21, 2020, 04:08:13 pm)

Articles