<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 "empty" 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"><<a href="mailto:a.hardie@lancaster.ac.uk" target="_blank">a.hardie@lancaster.ac.uk</a>></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:"Verdana",sans-serif;color:#1f497d">Hi Javier,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:#1f497d">It’s worth noting that the visualisation of start & 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:"Verdana",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana",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:"Verdana",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:#1f497d">best<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:#1f497d">Andrew.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana",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:"Calibri",sans-serif">From:</span></b><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",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 <<a href="mailto:cwb@sslmit.unibo.it" target="_blank">cwb@sslmit.unibo.it</a>><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 "inf" an attribute of the "turn" tag (it is much better structurally and now I can show "turn_inf" 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> show +turn_inf;<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">CORPUS> <turn> [word=".*"];<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">0: <<turn_inf E>okay> 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 <silence/>, <noise/>, 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 "inf" 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 <<a href="mailto:stefanML@collocations.de" target="_blank">stefanML@collocations.de</a>>:<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>
> Is there any way I can make CQP to show empty XML tags in queries results (so I can visualize them in CQPWeb)?<br>
> <br>
> I have tags like these: <br>
> <br>
> <inf id="E1"></inf><br>
> <br>
> (because it seems that cwb-encode doesn't like the shorter form <inf id="E1"/>)<br>
<br>
That's because CWB doesn'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'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>
<turn><br>
<inf id="E"><br>
okay<br>
</inf><br>
ya<br>
son<br>
las<br>
horas<br>
ah<br>
</turn><br>
<br>
and then define a suitable visualization for the start tag <inf> in CQPweb, but not for the end tag </inf>.<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>