<div dir="ltr"><div>Dear Simon</div><div>Thanks a lot. However (maybe this is because I am using a version of cqp which is too old? 3.0.0) I do not get any results:</div><div><br></div><div>The corpus is encoded with eg.<br></div><div>&lt;mwe lema=one=example=of lema pos=N&gt;</div><div><br></div><div>&lt;/mwe&gt;</div><div>and created with the flag -V mwe.</div><div>However, when I query</div><div>[ ] :: match.mwe=&quot;/.*/&quot;;</div><div>(whatever I put in the regular expression)</div><div>I always get</div><div>0 matches.</div><div><br></div><div>Any suggestion?</div><div>Thanks in advance</div><div>Diana<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Simon Meier-Vieracker &lt;<a href="mailto:simon.meier-vieracker@tu-dresden.de">simon.meier-vieracker@tu-dresden.de</a>&gt; escreveu no dia terça, 8/12/2020 à(s) 12:38:<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 style="overflow-wrap: break-word;">Given the structure suggested by Stefan, you can try something like this:<div><br></div><div>[word=&quot;word&quot;] :: match.s_trans = &quot;/regex/&quot;<br><div><br></div><div>Best, Simon</div><div><br></div><div><br><blockquote type="cite"><div>Am 08.12.2020 um 12:34 schrieb Diana Santos &lt;<a href="mailto:dianamsmpsantos@gmail.com" target="_blank">dianamsmpsantos@gmail.com</a>&gt;:</div><br><div><div dir="ltr"><div>Dear Stefan</div><div>I just wonder if there is any possibility (in cqp, not CQPweb) of searching by values of structural attributes. <br></div><div>I think to recall there was, but I couldn&#39;t find it.<br></div><div>Thank you in advance</div><div>Diana <br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Stefan Evert &lt;<a href="mailto:stefanML@collocations.de" target="_blank">stefanML@collocations.de</a>&gt; escreveu no dia terça, 8/12/2020 à(s) 10:41:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
<br>
&gt; Could you, please, give me some advice. We have a corpus where most of the sentences have translations. It is not a parallel corpus, just translations for particular sentences. What is the best way of integrating those translations into CQPweb? The main purpose is to give users a possibility to see translations for found sentences, maybe as a tooltip or some other way. The possibility of search in translations would be useful, but not mandatory.<br>
<br>
Include them as an attribute on the XML element wrapping sentences, or as an additional s-attribute, e.g.<br>
<br>
&lt;s trans=&quot;THIS IS THE TRANSLATION&quot;&gt;<br>
word    pos<br>
word    pos<br>
…<br>
&lt;/s&gt;<br>
<br>
Then you can enable &quot;s_trans&quot; as &quot;Free translation&quot; attribute in the visualisation settings in CQPweb.<br>
<br>
Best,<br>
Stefan<br>
<br>
_______________________________________________<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>
_______________________________________________<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" target="_blank">http://liste.sslmit.unibo.it/mailman/listinfo/cwb</a></div></blockquote></div></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>