[CWB] Retrieve structural attribute annotation tag without relying on the context
Hugo Sanjurjo González
hugo.sanjurjo at deusto.es
Wed Oct 16 15:14:27 CEST 2024
Hi Stephanie,
Yes, it works. Thank you very much.
My objective was to retrieve the structural tag in which the searched word
appears. For instance, when searching for all occurrences of the word
"example", I want to know in which structural annotation it appears, along
with the context and corresponding word-level annotations of the searched
word like POS.
Here’s a basic search with two-word context:
Left_contextHit_POS_InstructionRight_context
is an example_NOUN_1 of an
... Another example_NOUN_2 . ...
I was able to obtain everything, but I initially had trouble retrieving the
structural tag without using any 'tricks' to handle the output . Now, this
issue has been resolved.
Thanks again,
Hugo
El mié, 16 oct 2024 a las 14:12, Stephanie Evert (<stefanML at collocations.de>)
escribió:
> Not sure exactly what you want to achieve, but perhaps
>
> set PrintStructures instruction_name;
> cat;
>
> or
>
> tabulate Last match instruction_name;
>
> is what you've been looking for?
>
> Best,
> Stephanie
>
> On 15 Oct 2024, at 21:34, Hugo Sanjurjo González <hugo.sanjurjo at deusto.es>
> wrote:
>
> Related to a previous issue. I'm wondering if there's a way to retrieve
> structural annotation tags without relying on the context
>
> For example:
>
> <instruction name="1> This is an example of an instruction.
> </instruction><instruction name="1"> Another example. </instruction>
>
> Running the command:
>
> show +instruction;
>
> returns the opening and closing annotation tags if they are present in the
> context. I have some ideas on how to achieve this using the output, but I'd
> like to know if there is anything in CQP that I might have missed.
>
> Thank you very much for your help.
>
>
> _______________________________________________
> CWB mailing list
> CWB at sslmit.unibo.it
> http://liste.sslmit.unibo.it/mailman/listinfo/cwb
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://liste.sslmit.unibo.it/pipermail/cwb/attachments/20241016/06439de9/attachment.html>
More information about the CWB
mailing list