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

Freddy

  • *
  • Colossus
  • **********************
  • Posts: 5821
  • 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: 5821
  • 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: 4167
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
mini a.i puzzles
by Freddy (General AI Discussion)
Today at 09:45:52 PM
trivia questions
by yotamarker (General AI Discussion)
Today at 07:54:30 PM
Robot Message in a Bottle
by 8pla.net (Home Made Robots)
Today at 04:04:21 AM
La-Masterpiece
by LOCKSUIT (Graphics)
February 24, 2017, 10:26:32 PM
Auto-Food-Drone type delivery
by Art (General Chat)
February 24, 2017, 06:52:28 PM
Galton Machines or Bean Machines
by Freddy (General AI Discussion)
February 24, 2017, 03:13:07 AM
3D Printing
by Art (General Chat)
February 23, 2017, 12:51:23 PM
MusicNet
by keghn (General AI Discussion)
February 22, 2017, 11:03:11 PM
Robust bipedal Cassie to transform robot mobility
by Tyler (Robotics News)
February 24, 2017, 04:48:44 PM
Artificial intelligence: Understanding how machines learn
by Tyler (Robotics News)
February 24, 2017, 10:49:13 AM
Hard at work: A review of the Laevo Exoskeleton
by Tyler (Robotics News)
February 23, 2017, 04:48:12 PM
Shell Ocean Discovery XPRIZE: Semi-finalists set sail on a journey to illuminate the ocean
by Tyler (Robotics News)
February 22, 2017, 10:48:25 PM
Drones for good 2.0: How WeRobotics is redefining the use of unmanned systems in developing countries
by Tyler (Robotics News)
February 22, 2017, 04:48:07 PM
At what point should an intelligent machine be considered a person?
by Tyler (Robotics News)
February 22, 2017, 10:48:24 AM
Ocado evaluating robotic manipulation for online shopping orders
by Tyler (Robotics News)
February 21, 2017, 10:50:46 PM
Motor control systems: Bode plots and stability
by Tyler (Robotics News)
February 21, 2017, 04:48:52 PM

Users Online

18 Guests, 1 User
Users active in past 15 minutes:
Freddy
[Administrator]

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

Articles