[CWB] Negative constraints with cwb-scan-corpus

Stefan Evert stefanML at collocations.de
Wed Oct 19 16:32:44 CEST 2011


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



More information about the CWB mailing list