Author Topic: Need help with srai and passing star  (Read 1241 times)

Freddy

  • *
  • Colossus
  • **********************
  • Posts: 5792
  • Mostly Harmless
Need help with srai and passing star
« on: January 30, 2013, 10:28:03 PM »
I have this code :

Code: [Select]
<?xml version="1.0" encoding="utf-8" ?>
<aiml version="1.0">

<category>
<pattern>MUSIC *</pattern>
<template><srai>MP3</srai></template>
</category>

<category>
<pattern>MP3 *</pattern>
<template>I will play <star index="1"/></template>
</category>
</aiml>

But it only partly works.

If I type 'MP3 some song' the bot will say 'I will play some song'.

I tried to use srai but I can't seem to figure out how to pass the * to the category so that this also works : 'Music some song'

Cheers   :)


Freddy

  • *
  • Colossus
  • **********************
  • Posts: 5792
  • Mostly Harmless
Re: Need help with srai and passing star
« Reply #1 on: January 30, 2013, 10:44:38 PM »
Nevermind, found it :

Code: [Select]
<?xml version="1.0" encoding="utf-8" ?>
<aiml version="1.0">

<category>
<pattern>MUSIC *</pattern>
<template><srai>MP3 <star/></srai></template>
</category>

<category>
<pattern>MP3 *</pattern>
<template>I will play <star index="1"/></template>
</category>
</aiml>

I didn't put <star/> in the first pattern..  :idiot2:
« Last Edit: January 31, 2013, 11:08:35 AM by Freddy »

Art

  • At the end of the game, the King and Pawn go into the same box.
  • *
  • Hal 4000
  • ******************
  • Posts: 4101
Re: Need help with srai and passing star
« Reply #2 on: February 01, 2013, 12:40:55 AM »
Freddy,

You've confirmed it...you really ARE your own best friend!! ;)
In the world of AI, it's the thought that counts!

 

Welcome

Please login or register.



Login with username, password and session length
What do you call reality ?
by Data (General Chat)
Today at 01:57:44 PM
The last invention.
by LOCKSUIT (General Project Discussion)
Today at 12:15:14 AM
Commuter traffic have you at your wits end?
by Art (General Chat)
January 22, 2017, 03:13:37 AM
Hi.
by Art (New Users Please Post Here)
January 22, 2017, 02:33:02 AM
Existential threat by AI
by LOCKSUIT (General AI Discussion)
January 19, 2017, 09:45:30 PM
Robotic / tech bandwagons
by Freddy (General Robotics Talk)
January 19, 2017, 04:56:45 PM
Sinclair Computer
by Freddy (General Chat)
January 19, 2017, 04:33:15 PM
Toothpick in the bellybutton...
by yotamarker (General AI Discussion)
January 18, 2017, 05:56:53 PM
Ethics — the next frontier for artificial intelligence
by Tyler (AI News )
Today at 04:50:31 PM
The Drone Center’s Weekly Roundup: 1/23/17
by Tyler (Robotics News)
Today at 04:50:31 PM
Robots Podcast #226: Robots Podcast #226: Toru robots, with Dr. Moritz Tenorth, with Dr. Moritz Tenorth
by Tyler (Robotics News)
January 22, 2017, 10:49:36 AM
Combining automation and mobility to create a smarter world
by Tyler (Robotics News)
January 21, 2017, 10:48:47 AM
Responsive and Responsible Leadership given prominance at #WEF17 World Economic Forum
by Tyler (Robotics News)
January 21, 2017, 04:49:22 AM
NHTSA ODI report exonerates Tesla in fatal crash
by Tyler (Robotics News)
January 20, 2017, 10:49:02 PM
How AR technology can help farmers stay relevant
by Tyler (Robotics News)
January 20, 2017, 04:48:08 PM
Self-driving robots will start making deliveries for Postmates and DoorDash in select US cities
by Art (AI News )
January 20, 2017, 02:16:54 PM

Users Online

37 Guests, 0 Users

Most Online Today: 32. Most Online Ever: 208 (August 27, 2008, 08:24:30 AM)

Articles