<div dir="ltr">Thanks Andrew!<div><br></div><div>I will do as you suggest, Just to be sure that I have understand the trick: I am supposed to enclose some material, probably the following word, between my &quot;empty&quot; tags, and then create a visualization only for the start tag, right?</div><div><br></div><div>regards,</div><div><br></div><div>Javier </div></div><div class="gmail_extra"><br><div class="gmail_quote">2018-06-12 17:27 GMT-04:00 Hardie, Andrew <span dir="ltr">&lt;<a href="mailto:a.hardie@lancaster.ac.uk" target="_blank">a.hardie@lancaster.ac.uk</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="EN-GB" link="blue" vlink="purple">
<div class="m_-8789871138883582262WordSection1">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:#1f497d">Hi Javier,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:#1f497d">It’s worth noting that the visualisation of start &amp; end tags in CQPweb is independent of one another. You can display just a start
 tag. (Or have different visualisation of the start and the end, but that’s less relevant here.)<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:#1f497d">So, you can simulate empty elements for pauses etc. using start tags (let cwb-encode fill in the end points wherever it likes, it doesn’t
 matter, as you won ‘t use that data) and then create a visualisation for the start tag. Stefan mentioned this but I thought it was worth underlining…
<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:#1f497d">best<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:#1f497d">Andrew.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif">From:</span></b><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif"> <a href="mailto:cwb-bounces@sslmit.unibo.it" target="_blank">cwb-bounces@sslmit.unibo.it</a> [mailto:<a href="mailto:cwb-bounces@sslmit.unibo.it" target="_blank">cwb-bounces@sslmit.<wbr>unibo.it</a>]
<b>On Behalf Of </b>Javier Pueyo<br>
<b>Sent:</b> 12 June 2018 20:19<br>
<b>To:</b> CWBdev Mailing List &lt;<a href="mailto:cwb@sslmit.unibo.it" target="_blank">cwb@sslmit.unibo.it</a>&gt;<br>
<b>Subject:</b> Re: [CWB] Empty XML tags not showing in CQP<u></u><u></u></span></p><div><div class="h5">
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">Thank you Stefan,<u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">When I read your second suggestion I had a light-bulb moment and decided to make &quot;inf&quot; an attribute of the &quot;turn&quot; tag (it is much better structurally and now I can show &quot;turn_inf&quot;  in CQP, and hopefully visualize it in CQPWeb):<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">-S turn+id+inf  <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">CORPUS&gt; show +turn_inf;<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">CORPUS&gt; &lt;turn&gt; [word=&quot;.*&quot;];<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">0:      &lt;&lt;turn_inf E&gt;okay&gt; ya son las horas ah<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Unfortunately, I cannot apply the same solution to other empty tags I use in my corpus (like &lt;silence/&gt;, &lt;noise/&gt;, etc), since they may appear in any position within a given speech turn.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">But being able to visualize &quot;inf&quot; was really important. Thanks for the clue!<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Javier<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">  <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">2018-06-12 12:04 GMT-04:00 Stefan Evert &lt;<a href="mailto:stefanML@collocations.de" target="_blank">stefanML@collocations.de</a>&gt;:<u></u><u></u></p>
<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm">
<p class="MsoNormal"><br>
<br>
&gt; Is there any way I can make CQP to show empty XML tags in queries results (so I can visualize them in CQPWeb)?<br>
&gt; <br>
&gt; I have tags like these: <br>
&gt; <br>
&gt; &lt;inf id=&quot;E1&quot;&gt;&lt;/inf&gt;<br>
&gt; <br>
&gt; (because it seems that cwb-encode doesn&#39;t like the shorter form &lt;inf id=&quot;E1&quot;/&gt;)<br>
<br>
That&#39;s because CWB doesn&#39;t support empty XML elements.  It accepts the long from with explicit start and end tags, but will simply ignore the empty regions.<br>
<br>
In BNCweb, we store empty XML tags in a p-attribute that collects all tags that occur immediately before the respective token; a second p-attribute contains a pre-processed (feature set) representation for easier searching.<br>
<br>
Unfortunately, CQPweb can&#39;t visualize arbitrary p-attributes yet, so this would help for searching but nor display.  I think the only work around would be to move the end tags so that the XML element wraps the following token:<br>
<br>
&lt;turn&gt;<br>
&lt;inf id=&quot;E&quot;&gt;<br>
okay<br>
&lt;/inf&gt;<br>
ya<br>
son<br>
las<br>
horas<br>
ah<br>
&lt;/turn&gt;<br>
<br>
and then define a suitable visualization for the start tag &lt;inf&gt; in CQPweb, but not for the end tag &lt;/inf&gt;.<br>
<br>
Best,<br>
Stefan<u></u><u></u></p>
</blockquote>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div></div></div>
</div>

<br>______________________________<wbr>_________________<br>
CWB mailing list<br>
<a href="mailto:CWB@sslmit.unibo.it">CWB@sslmit.unibo.it</a><br>
<a href="http://liste.sslmit.unibo.it/mailman/listinfo/cwb" rel="noreferrer" target="_blank">http://liste.sslmit.unibo.it/<wbr>mailman/listinfo/cwb</a><br>
<br></blockquote></div><br></div>