[CWB] Negative constraints with cwb-scan-corpus

Hardie, Andrew a.hardie at lancaster.ac.uk
Wed Oct 19 21:36:54 CEST 2011


And we'll also need to update the man file.....

Andrew.

-----Original Message-----
From: cwb-bounces at sslmit.unibo.it [mailto:cwb-bounces at sslmit.unibo.it] On Behalf Of Stefan Evert
Sent: 19 October 2011 15:33
To: Open source development of the Corpus WorkBench
Subject: Re: [CWB] Negative constraints with cwb-scan-corpus

Fixed in trunk (using the '!=' syntax), needs testing.

Cheers,
Stefan

PS: This feature might actually be quite useful, especially if one specifies multiple constraints for the same item (e.g. to filter out some unwanted matches).


On 18 Oct 2011, at 14:06, Hardie, Andrew wrote:

> Hi Lukas,
> 
> No, this is not currently possible.
> 
> best
> 
> Andrew.
> 
> -----Original Message-----
> From: cwb-bounces at sslmit.unibo.it [mailto:cwb-bounces at sslmit.unibo.it] On Behalf Of Lukas Michelbacher
> Sent: 18 October 2011 13:02
> To: cwb at sslmit.unibo.it
> Subject: [CWB] Negative constraints with cwb-scan-corpus
> 
> Does cwb-scan-corpus support negative regex constraints?
> 
> I know that things like
> 
> pos+0=/JJ.*/
> 
> work but the following do not:
> 
> pos+0!=/JJ.*/
> pos+0~=/JJ.*/
> 
> Is there a trick I am missing or is it just not possible?
> 
> Lukas
> 
> --
> Dipl.-Ling. Lukas Michelbacher
> Institute for Natural Language Processing
> University of Stuttgart
> http://www.ims.uni-stuttgart.de/~michells
> _______________________________________________
> CWB mailing list
> CWB at sslmit.unibo.it
> http://devel.sslmit.unibo.it/mailman/listinfo/cwb
> _______________________________________________
> CWB mailing list
> CWB at sslmit.unibo.it
> http://devel.sslmit.unibo.it/mailman/listinfo/cwb

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


More information about the CWB mailing list