<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Garamond;
        panose-1:2 2 4 4 3 3 1 1 8 3;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;}
p.Reference, li.Reference, div.Reference
        {margin:0in;
        margin-bottom:.0001pt;
        text-align:justify;
        font-size:11.0pt;
        font-family:Garamond;
        color:red;
        font-weight:bold;
        font-style:italic;}
p.VariableorCode, li.VariableorCode, div.VariableorCode
        {margin-top:6.0pt;
        margin-right:0in;
        margin-bottom:6.0pt;
        margin-left:1.0in;
        text-align:justify;
        font-size:9.0pt;
        font-family:"Courier New";}
p.VariableorCodeCxSpFirst, li.VariableorCodeCxSpFirst, div.VariableorCodeCxSpFirst
        {mso-style-type:export-only;
        margin-top:6.0pt;
        margin-right:0in;
        margin-bottom:0in;
        margin-left:1.0in;
        margin-bottom:.0001pt;
        text-align:justify;
        font-size:9.0pt;
        font-family:"Courier New";}
p.VariableorCodeCxSpMiddle, li.VariableorCodeCxSpMiddle, div.VariableorCodeCxSpMiddle
        {mso-style-type:export-only;
        margin-top:0in;
        margin-right:0in;
        margin-bottom:0in;
        margin-left:1.0in;
        margin-bottom:.0001pt;
        text-align:justify;
        font-size:9.0pt;
        font-family:"Courier New";}
p.VariableorCodeCxSpLast, li.VariableorCodeCxSpLast, div.VariableorCodeCxSpLast
        {mso-style-type:export-only;
        margin-top:0in;
        margin-right:0in;
        margin-bottom:6.0pt;
        margin-left:1.0in;
        text-align:justify;
        font-size:9.0pt;
        font-family:"Courier New";}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=blue>

<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Hi Svetlana, <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>RavenClaw can bind on any of the
attributes in the input. For instance, if you look at the &#8220;new input
arrived&#8221; line in a dialog log, below it you will have a dump of all the
attributes of the input and their values. You will notice that there are things
there which represent the various parse fragments such as [Yes] or
[Query.location] (which you normally bind on the dialog task). At the same
time, there are a number of other attributes starting with h3_ &#8230; these
are the various features that helios3 in fact uses in the confidence annotation
process. They are passed all the way to the DM. Among them, h3_hypothesis
contains the actual text of the recognition and h3_parse_str contains the full
parse of the current decoded result. You can therefore bind on [h3_hypothesis]
to get the text of the recognition. <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Hope this helps, but let me know if you
have other questions. <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Dan<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=2 width="100%" align=center tabindex=-1>

</span></font></div>

<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>
ravenclaw-developers-bounces@LOGANBERRY.srv.cs.cmu.edu
[mailto:ravenclaw-developers-bounces@LOGANBERRY.srv.cs.cmu.edu] <b><span
style='font-weight:bold'>On Behalf Of </span></b>Svetlana Stenchikova<br>
<b><span style='font-weight:bold'>Sent:</span></b> Thursday, November 09, 2006
9:40 AM<br>
<b><span style='font-weight:bold'>To:</span></b> Antoine Raux<br>
<b><span style='font-weight:bold'>Cc:</span></b>
ravenclaw-developers@cs.cmu.edu<br>
<b><span style='font-weight:bold'>Subject:</span></b> [RavenclawDev 188] Re:
bypassing the parser</span></font><o:p></o:p></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>Hi Antoine (or Dan), <br>
<br>
did you, by any chance, remember the syntax for the grammar mapping to get text
instead of a parse in a request/expect agent?<br>
<br>
Thank you<br>
Svetlana<o:p></o:p></span></font></p>

<div>

<p class=MsoNormal><span class=gmailquote><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'>On 11/5/06, <b><span style='font-weight:bold'>Antoine
Raux</span></b> &lt;<a href="mailto:antoine@cs.cmu.edu">antoine@cs.cmu.edu</a>&gt;
wrote:</span></font></span><o:p></o:p></p>

<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>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;<o:p></o:p></span></font></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

</div>

</body>

</html>