[CWB] problems width lemma and pos queries
Hardie, Andrew
a.hardie at lancaster.ac.uk
Thu Feb 4 16:05:09 CET 2010
Hi,
The solution here may be to use
cwb-lexdecode -P word PROVA
cwb-lexdecode -P pos PROVA
cwb-lexdecode -P lemma PROVA
to see what is actually in each p-attribute **separately**. This may
make it clear what the encoding error is (I very strongly suspect there
is one!)
best
Andrew.
-----Original Message-----
From: cwb-bounces at sslmit.unibo.it [mailto:cwb-bounces at sslmit.unibo.it]
On Behalf Of Albert Albert
Sent: 04 February 2010 13:02
To: cwb at sslmit.unibo.it
Subject: [CWB] problems width lemma and pos queries
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!
_______________________________________________
CWB mailing list
CWB at sslmit.unibo.it
http://devel.sslmit.unibo.it/mailman/listinfo/cwb
More information about the CWB
mailing list