[CWB] Question about concordance, and cooccurrences

Hardie, Andrew a.hardie at lancaster.ac.uk
Sun Feb 26 19:34:20 CET 2017


Because there is only one instance of "desires". 

So only one match is made for the *whole* pattern.

If you want to count the cooccurence of one instance of "desires" with two instances of "year" as two hits, then you need a different approach. EG, by searching for your node first, then using "tabulate" to get collocates. See section 7.3 of the CQP tutorial.

(Incidentally, did you mistype your query? You seem to have a query of the form "a or b" where a and b are the same.)

best

Andrew.


-----Original Message-----
From: cwb-bounces at sslmit.unibo.it [mailto:cwb-bounces at sslmit.unibo.it] On Behalf Of kamel nacer
Sent: 24 February 2017 10:51
To: cwb at sslmit.unibo.it
Subject: [CWB] Question about concordance, and cooccurrences

Hello,

I'm newbie with cwb and I want to calculate cooccurrences using concordance.

So this is my input:

Simply, if Providence so desires, a year of happiness. Good evening
and happy new year!

And this is my request:

([word="desires"] []{1,11} [word="year"] ) | ([word="desires"]
[]{1,11}  [word="year"] ) .

The result:
Simply, if Providence so       desires, a year       of happiness.
Good evening and happy new year!

The question is, why there no two results because there is a second
word "year" at the end of the sentence.

Any information will be appreciated.

Thank you in advance.

Cordially.
_______________________________________________
CWB mailing list
CWB at sslmit.unibo.it
http://liste.sslmit.unibo.it/mailman/listinfo/cwb


More information about the CWB mailing list