<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 "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):</div><div><br></div><div>-S turn+id+inf </div><div><br></div><div>CORPUS> show +turn_inf;</div><div>CORPUS> <turn> [word=".*"];</div><div><br></div><div>0: <<turn_inf E>okay> 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 <silence/>, <noise/>, etc), since they may appear in any position within a given speech turn.</div><div><br></div><div>But being able to visualize "inf" 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"><<a href="mailto:stefanML@collocations.de" target="_blank">stefanML@collocations.de</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><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>
</span>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>
<span class="">ya<br>
son<br>
las<br>
horas<br>
ah<br>
</span></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</blockquote></div><br></div>