[CWB] Set context of query that includes a structural attribute

Hugo Sanjurjo González hugo.sanjurjo at deusto.es
Tue Apr 23 22:08:23 CEST 2024


Hi everyone,

I'm wondering if there's a way to automatically display the text contained
within a structural attribute in the context of a concordance.

Let me explain with an example. Consider the following sentence:

Lorem ipsum dolor sit amet, consectetur adipiscing elit <instruction
name="1"> This is an example of an instruction</instruction> Lorem
ipsum dolor sit amet, consectetur adipiscing elit.

If I run the following query:

"example" :: match.instruction_name="1";

I would like cqp to return:

"This is an example of an instruction."

Is that possible in a simple way? Thank you very much for your help.
Hugo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://liste.sslmit.unibo.it/pipermail/cwb/attachments/20240423/6f6c18a5/attachment.html>


More information about the CWB mailing list