W3C home > Mailing lists > Public > www-voice@w3.org > October to December 2002

Grammar question : multiple keywords

From: Yahn Teisseire <yahn@ukibi.com>
Date: Wed, 2 Oct 2002 08:44:38 -0400 (EDT)
Message-ID: <0a0401c26a11$5b2b2e20$e9020a0a@paris.ukibi.com>
To: <www-voice@w3.org>
Hi,

I'd like to know if that's possible to build a grammar able to recognize
multiple keywords, for example, "offer John a cookie", "send Tabatha
flowers", without building a grammar like :

<grammar>
   <![CDATA[[
    (offer John cookie) {<action="offer"><contact="John"><object="cookie">}
    (offer John flowers)
{<action="offer"><contact="John"><object="flowers">}
    (send John cookie) {<action="send "><contact="John"><object="cookie">}
    (send John flowers) {<action="send "><contact="John"><object="flowers">}
    (offer Tabatha cookie) {<action="offer"><contact="Tabatha
"><object="cookie">}
    (offer Tabatha flowers) {<action="offer"><contact="Tabatha
"><object="flowers">}
    (send Tabatha cookie) {<action="send "><contact="Tabatha
"><object="cookie">}
    (send Tabatha flowers) {<action="send "><contact="Tabatha
"><object="flowers">}
   ]]]>
</grammar>

because if you have a lot of actions and contacts, the grammar will be too huge to describe all combinations.


Thanks for your help
Received on Wednesday, 2 October 2002 10:20:36 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 30 October 2006 12:48:56 GMT