<div dir="ltr">Thank you Stefan,<div><br></div><div>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):</div><div><br></div><div>-S turn+id+inf  </div><div><br></div><div>CORPUS&gt; show +turn_inf;</div><div>CORPUS&gt; &lt;turn&gt; [word=&quot;.*&quot;];</div><div><br></div><div>0:      &lt;&lt;turn_inf E&gt;okay&gt; ya son las horas ah</div><div><br></div><div>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.</div><div><br></div><div>But being able to visualize &quot;inf&quot; was really important. Thanks for the clue!</div><div><br></div><div>Javier</div><div>  </div><div> </div></div><div class="gmail_extra"><br><div class="gmail_quote">2018-06-12 12:04 GMT-04:00 Stefan Evert <span dir="ltr">&lt;<a href="mailto:stefanML@collocations.de" target="_blank">stefanML@collocations.de</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><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>
</span>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>
<span class="">ya<br>
son<br>
las<br>
horas<br>
ah<br>
</span>&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</blockquote></div><br></div>