<div dir="ltr"><div dir="ltr"><div>Hi Stephanie,</div><div><br></div><div></div><div>
Yes, it works. Thank you very much.

</div>
<p>My objective was to retrieve the structural tag in which the searched word appears. For instance, when searching for all occurrences of the word &quot;example&quot;, 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.</p><p>Here’s a basic search with two-word context:</p><table><thead><tr><th>Left_context</th><th>Hit_POS_Instruction</th><th>Right_context</th></tr></thead><tbody><tr><td>is an</td><td>example_NOUN_1</td><td>of an</td></tr><tr><td>... Another</td><td>example_NOUN_2</td><td>. ...<br></td></tr></tbody></table><p>I was able to obtain everything, but I initially had trouble retrieving the structural tag
without using any &#39;tricks&#39; to handle the output

. Now, this issue has been resolved.</p>

<div>Thanks again,</div><div>Hugo<br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">El mié, 16 oct 2024 a las 14:12, Stephanie Evert (&lt;<a href="mailto:stefanML@collocations.de">stefanML@collocations.de</a>&gt;) escribió:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>Not sure exactly what you want to achieve, but perhaps<div><br></div><div><span style="white-space:pre-wrap">        </span>set PrintStructures instruction_name;</div><div><span style="white-space:pre-wrap">        </span>cat;</div><div><br></div><div>or</div><div><br></div><div><span style="white-space:pre-wrap">        </span>tabulate Last match instruction_name;</div><div><br></div><div>is what you&#39;ve been looking for?</div><div><br></div><div>Best,</div><div>Stephanie<br id="m_1239977601462401311lineBreakAtBeginningOfMessage"><div><br><blockquote type="cite"><div>On 15 Oct 2024, at 21:34, Hugo Sanjurjo González &lt;<a href="mailto:hugo.sanjurjo@deusto.es" target="_blank">hugo.sanjurjo@deusto.es</a>&gt; wrote:</div><br><div><p>Related to a previous issue. I&#39;m wondering if there&#39;s a way to retrieve structural annotation tags without relying on the context<span> </span></p><p> For example:</p><div><br></div><span style="font-family:monospace">&lt;instruction name=&quot;1&gt; This is an example of an instruction. &lt;/instruction&gt;&lt;instruction name=&quot;1&quot;&gt; Another example. &lt;/instruction&gt;<span> </span></span><p>Running the command:</p><p><span style="font-family:monospace">show<span> </span><a class="gmail_plusreply" id="m_1239977601462401311plusReplyChip-0">+instruction;</a></span></p><p>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&#39;d like to know if there is anything in CQP that I might have missed.<span> </span><br></p><p>Thank you very much for your help.</p><font color="#888888"><span style="color:rgb(136,136,136);font-family:ArialMT;font-size:14px;font-style:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;display:inline;float:none"></span><br></font></div></blockquote></div><br></div></div>_______________________________________________<br>
CWB mailing list<br>
<a href="mailto:CWB@sslmit.unibo.it" target="_blank">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/mailman/listinfo/cwb</a><br>
</blockquote></div><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><table style="color:rgb(0,0,0);font-family:&quot;Times New Roman&quot;;font-size:medium;border-collapse:collapse" cellspacing="0" cellpadding="0" border="0"><tbody><tr><td style="font-size:13px"></td></tr><tr><td style="padding-top:0px"></td></tr><tr><td style="padding-top:10px"><table style="border-collapse:collapse" cellspacing="0" cellpadding="0" border="0"><tbody><tr><td style="vertical-align:middle" valign="center"></td><td style="padding-left:30px;vertical-align:middle" valign="center"><br></td></tr></tbody></table></td></tr></tbody></table></div></div></div></div></div></div></div>