Artificial Intelligence JavaScript Object Notation

  • 10 Replies
  • 4715 Views
*

8pla.net

  • Trusty Member
  • ***********
  • Eve
  • *
  • 1302
  • 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
  • *
  • 1365
  • 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
  • *
  • 5865
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
  • *
  • 1365
  • 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
  • *
  • 5865
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
  • *
  • 1302
  • 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
  • *
  • 1365
  • 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
  • *
  • 1302
  • 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
  • *
  • 1302
  • 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
  • *
  • 6855
  • 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
  • *
  • 1302
  • 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

 


OpenAI Speech-to-Speech Reasoning Demo
by ivan.moony (AI News )
March 28, 2024, 01:31:53 pm
Say good-bye to GPUs...
by MikeB (AI News )
March 23, 2024, 09:23:52 am
Google Bard report
by ivan.moony (AI News )
February 14, 2024, 04:42:23 pm
Elon Musk's xAI Grok Chatbot
by MikeB (AI News )
December 11, 2023, 06:26:33 am
Nvidia Hype
by 8pla.net (AI News )
December 06, 2023, 10:04:52 pm
How will the OpenAI CEO being Fired affect ChatGPT?
by 8pla.net (AI News )
December 06, 2023, 09:54:25 pm
Independent AI sovereignties
by WriterOfMinds (AI News )
November 08, 2023, 04:51:21 am
LLaMA2 Meta's chatbot released
by 8pla.net (AI News )
October 18, 2023, 11:41:21 pm

Users Online

309 Guests, 0 Users

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

Articles