[CWB] Structural Attributes
Serge Heiden
slh at ens-lyon.fr
Tue Nov 18 21:35:57 CET 2014
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
More information about the CWB
mailing list