[CWB] Structural Attributes

Hardie, Andrew a.hardie at lancaster.ac.uk
Tue Nov 18 21:49:31 CET 2014


Very nice tabulation Serge, but FYI - and in my customary spirit of nitpicking - can I point at this para from Evert & Hardie (2011:8)...

>>
The third key aspect to how CWB works is the query language used within CQP, which we 
call the *CQP Query Language* or *CQP-syntax* for short. This language is sometimes referred 
to in the literature as *Corpus Query Language* or *CQL* (for example, in papers related to the 
SketchEngine software). We do not use this term, however, and we strongly recommend 
against its use by others, because "CQL" has been in use for a long time as the name of a 
non-corpus query language standard promulgated by the US Library of Congress, as well as 
a label for the underlying query language of the SARA/Xaira software.
This latter "CQL" is XML-based and therefore incompatible with CQP-syntax.
<<

best

Andrew.

-----Original Message-----
From: cwb-bounces at sslmit.unibo.it [mailto:cwb-bounces at sslmit.unibo.it] On Behalf Of Serge Heiden
Sent: 18 November 2014 20:36
To: cwb at sslmit.unibo.it
Subject: Re: [CWB] Structural Attributes

Hi,

Le 18/11/2014 17:36, Stefan Evert a écrit :
> On 18 Nov 2014, at 14:21, Maarten Janssen <maartenpt at gmail.com> wrote:
>
>> (1) When using a (potentially) complex CQL it would be useful to be able to restrict that whole query to texts of a specific year, say
>>
>> [word=".*ion"] []{3,5} [pos="V.*"] :: text_year="1900"
> Ruprecht already gave the answer to this issue.  I'd just like to add that it's often much faster to restrict the search to the subcorpus rather than filter the full set of results:
>
> 	Sub = <text_year = "1900"> [] expand to text;
> 	Sub;
> 	[word=".*ion"] []{3,5} [pos="V.*"]
You can also put the year constraint directly into the word constraints:

	[word=".*ion" & _.text_year="1900"] []{3,5} [pos="V.*"]

See line 141 of CQL syntax reference document at:
https://docs.google.com/document/d/1rz39LixYl6uegx35kIj6JLYbMPEOsy2ycg4JuCBZ68Y

Best,
Serge

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


More information about the CWB mailing list