Thank you Dan and Antoine for your quick response.<br>
<br>
Antoine, your suggestion sounds interesting. DM does get called even if there is no parse found (I did not think it was) <br>
<br>
So, the change would be in a RequestAgent, right?<br>
<br>
I will probably still go for the &quot;second parser&quot; because eventually we
will want to record and save the audio, where, I guess, the audio input
will go directly to this &quot;parser&quot; which will output the location of the
saved file.<br>
<br>
Thanks!<br>
Svetlana<br>
<br>
<br><div><span class="gmail_quote">On 11/5/06, <b class="gmail_sendername">Antoine Raux</b> &lt;<a href="mailto:antoine@cs.cmu.edu">antoine@cs.cmu.edu</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Svetlana,<br><br>RavenClaw actually has access to the (recognized) text corresponding to<br>each input, whether it's parsable or not. It's part of the set of<br>features that Helios passes to the DM. I forgot exactly how to access
<br>these features but I believe it's basically a grammar mapping with a<br>special prefix that indicates that you're not binding a grammar slot but<br>a Helios input structure slot. Sorry I don't remember the exact syntax
<br>now... If nobody else (Dan?) replies with more precision, I'll find it<br>out and email that later in the week. In any case, you might be able to<br>get what you want (the text of the input) without modifying anything at
<br>all but your task specification (grammar mappings)...<br><br>Otherwise, the second approach you are proposing (basically adding a<br>second &quot;parser&quot;) sounds definitely much better than the first one, in<br>the sense that it preserves the integrity of the input line (which is
<br>important for many things in the DM like grounding, reference to<br>previous turns....).<br><br>I hope Dan will come up with a more precise answer soon :)<br><br>antoine<br><br>Svetlana Stenchikova wrote:<br><br>&gt; I just thought of another way to implement this without changing
<br>&gt; RavenClaw:<br>&gt;<br>&gt; Add another server ProcessRawData which receives the raw data input<br>&gt; (in parallel with the parser)<br>&gt; ProcessRawData outputs the input text in the format of the Parser:<br>&gt;
<br>&gt; [RawText] ( the typed in text )<br>&gt;<br>&gt; The output is&nbsp;&nbsp;passed&nbsp;&nbsp;to the DialogManager.process_parse message<br>&gt;<br>&gt; The the text will bind to all concept that are expected in the<br>&gt; [RawText] grammar mapping.
<br>&gt;<br>&gt; Please let me know your thoughts on this.<br>&gt;<br>&gt; thank you<br>&gt; Svetlana<br>&gt;<br>&gt;<br>&gt; On 11/5/06, *Svetlana Stenchikova* &lt;<a href="mailto:svetastenchikova@gmail.com">svetastenchikova@gmail.com
</a><br>&gt; &lt;mailto:<a href="mailto:svetastenchikova@gmail.com">svetastenchikova@gmail.com</a>&gt;&gt; wrote:<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Dan, thank you for&nbsp;&nbsp;your answer. I have another question.<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; We are interested in the functionality where a free text can be
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; entered through TTY (or through free speech recognition).<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; For example, a user can be asked to describe the event. The<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; grammar for this description is not available, so we want to store
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; all of the typed ( or recognized) text, and/or a URL of the<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; recorded speech&nbsp;&nbsp;into the concept in a dialog manager.<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; We need to bypass the parser. I would need to make changes to the
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; RavenClaw to accommodate this, right?<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Currently the user input from the TTY (or ASR)&nbsp;&nbsp;is processed by<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; the parser.<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The control flow is determined by the .pgm file. This entry
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; causes it to call process_parse when an output from the parser is<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; available:<br>&gt;<br>&gt;<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; ;; If we have a confidence annotated hypothesis, but<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; ;; no parse, call phoenix to parse it
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; ;; ---<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; RULE: :confhyps &amp; !:parses --&gt; phoenix.phoenixparse<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; IN: :confhyps :npow :pow :clip_info<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; OUT: :total_numparses :parses :input_source<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; LOG_OUT: :parses
<br>&gt;<br>&gt;<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; So I plan to add another entry:<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;;; If we have a confidence annotated hypothesis, but<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; ;; no parse, call DM directly<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; ;; ---<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; RULE: :confhyps &amp; !:parses --&gt; 
DM.process_raw<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; IN: :confhyps :npow :pow :clip_info<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; OUT:<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; LOG_OUT:<br>&gt;<br>&gt;<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Add process_raw() to<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Libraries/RavenClaw/DMInterfaces/GalaxyInterfaceFunctions.h&amp;
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; implement in GalaxyInterface.cpp<br>&gt;<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; process_raw() function will be called whenever an output from the<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; TTY (or ASR) is received. So, this output will go to both parser<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; and 
DialogManager.process_raw.<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; process_raw()&nbsp;&nbsp;assigns the text to a concept (but only in the case<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; when the concept is currently expected):<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; For every expected concept as compiled by<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; CDMCoreAgent::compileExpectationAgenda():
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; If a concept is a &quot;raw speech&quot; concept,&nbsp;&nbsp;set its value to the raw<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; text received in an&nbsp;&nbsp;input frame&nbsp;&nbsp;to process_raw<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; I would have to add a type to a concept to indicate that it allows
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &quot;raw text&quot; input.<br>&gt;<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Does this implementation plan make sense?<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Could you please make any suggestions?<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Jahanzeb must have done something similar because his application
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; can record user's input. Do you know how that was implemented?<br>&gt;<br>&gt;<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Thank you,<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Svetlana<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br><br></blockquote></div><br>