[CWB] Structural attributes in CQP with values
Diana Santos
dianamsmpsantos at gmail.com
Fri Sep 4 19:40:46 CEST 2026
Hi
I have been studying the use of XML attributes in CWB
https://cwb.sourceforge.io/files/CQP_Manual/4_3.html
and testing it (in the CQPDemo DICKENS corpus,
https://corpora.linguistik.uni-erlangen.de/demos/CQP/CQPDemo/frames-simple.html
)
but do not seem to be able to replicate this behaviour in my own corpora.
In particular, instead of <np> etc I have just <mwe>, but with some values,
such as .
<mwe lema="jogo=de=palavras" pos="N">
<mwe lema="cana=do=nariz" pos="N" grupo="Cabeça" sema="corpo">
But although I have tried to encode the corpora with -V mwe.lema, I still
cannot get it, that is, I cannot do "simple" things like
<np> a:[] []* </np> :: a.np_h = "bank";
that is
<mwe> a:[] [*] </mwe> :: a.mwe_lema = "cor"
I suppose there is something in the encoding that I am doing wrongly?
I can of course do
<mwe> [] []* </mwe>
but I cannot access the values of the key-values pairs. Can anyone help me
with this?
Thanks a lot in advance
Diana
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://liste.sslmit.unibo.it/pipermail/cwb/attachments/20260904/bfca3147/attachment-0001.html>
More information about the CWB
mailing list