[CWB] Empty XML tags not showing in CQP

Stefan Evert stefanML at collocations.de
Thu Jun 14 15:53:20 CEST 2018



> On 14 Jun 2018, at 14:44, Javier Pueyo <javier.pueyo at gmail.com> wrote:
> 
> 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?

What Andrew suggested was to just insert start tags

	<inf id="E">

without any end tags and make sure you encode without recursion specifier, i.e. with

	-S inf+id

rather than "-S inf:0+id".  CWB will automatically close the XML element when it encounters the next start tag.  The resulting regions are completely meaningless, of course, but that's fine if you just visualise the start tags.

This is actually a fairly good idea, as you can also use them in CQP queries (again without end tags):

	… <inf_id="E"> […] …;

Best,
Stefan 


More information about the CWB mailing list