- From: Shani Shalgi <shani.shalgi@amdocs.com>
- Date: Wed, 2 Oct 2002 17:32:18 +0200
- To: "'Yahn Teisseire'" <yahn@ukibi.com>, www-voice@w3.org
- Message-ID: <2D656A84E992D411942D00508BDE7A2002490292@jermail2.corp.amdocs.com>
You can use sub grammars for Action, Name and Object: Mygrammar [ (Action:a Name:n Object:o) {<action $a><contact $n><object $o>} ] Action [ send {return ("send")} offer {return ("offer")} ] Name [ jhon {return ("jhon")} tabatha {return("tabatha")} ] Object [ cookie {return ("cookie")} flowers {return ("flowers")} ] -----Original Message----- From: Yahn Teisseire [mailto:yahn@ukibi.com] Sent: Wed, October 02, 2002 4:19 PM To: www-voice@w3.org Subject: Grammar question : multiple keywords 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
------------------------------------------------------------------------------------- The information contained in this message is proprietary of Amdocs, protected from disclosure, and may be privileged. The information is intended to be conveyed only to the designated recipient(s) of the message. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, use, distribution or copying of this communication is strictly prohibited and may be unlawful. If you have received this communication in error, please notify us immediately by replying to the message and deleting it from your computer. Thank you. -------------------------------------------------------------------------------------
Received on Wednesday, 2 October 2002 10:38:50 UTC