[CWB] problems width lemma and pos queries

Albert Albert albertwifi at gmail.com
Thu Feb 4 14:02:06 CET 2010


Hi all, I'm testing a basic cqp (CQP version 2.2.103)  example, and I
have problems.
I have this example "PROVA" in registry width:
ATTRIBUTE word
ATTRIBUTE pos
ATTRIBUTE lemma

$ cwb-decode -C PROVA -ALL
<p>
<s>
An      DET     a
easy    ADJ     easy
example NN      example
.       PUN     .
</s>
<s>
Another DET     another
very    ADV     very
easy    ADJ     easy
example NN      example
.       PUN     .
</s>
<s>
Only    ADV     only
the     DET     the
easiest ADJ     easy
examples        NN      example
!       PUN     !
</s>
</p>
-----------------------
I have problem with the query's with lemma or pos attribute.
Then I access to cqp, and these query's doesn't work:
PROVA> [lemma = "easy"];
0 matches.
PROVA> [lemma = "ea.+"];
0 matches.
PROVA> [pos = "NN"];
0 matches.
PROVA> [pos = "N.+"];
0 matches.

And this, returns all sentences:
PROVA> [pos != "N.+"];
        0:                           <An> easy example . Another v
        1:                        An <easy> example . Another very e
        2:                   An easy <example> . Another very easy exam
        3:           An easy example <.> Another very easy exampl
        4:         An easy example . <Another> very easy example . Only
        5: An easy example . Another <very> easy example . Only the
        6: sy example . Another very <easy> example . Only the easie
        7: ample . Another very easy <example> . Only the easiest examp
        8: Another very easy example <.> Only the easiest example
        9: other very easy example . <Only> the easiest examples !
       10:  very easy example . Only <the> easiest examples !
       11: y easy example . Only the <easiest> examples !
       12: xample . Only the easiest <examples> !
       13: Only the easiest examples <!>


Anyone can help me? what's the problem? Any query againsts word
attribute work correctly
CQP version 2.2.103

Thanks!


More information about the CWB mailing list