[CWB] CQPWeb -- Negation operator in simple query language

Martí Quixal marti.quixal at gmail.com
Wed Oct 31 18:06:59 CET 2012


I see your points. My current problem was I wanted to search for sequences
of finite verbs +  gerund, but make sure that estar was not included as
finite verb form (by far the most frequent in my corpus).

But this was just an example, it was not derived from real needs. So
basically I'm good. The customization options you gave are good to know and
that's enough for me right now.

Thanks!

Marti

pd I guess it's unfair to think as a CQP speaker and act as a CQPWeb
natural user ;-)

On Wed, Oct 31, 2012 at 11:09 AM, <cwb-request at sslmit.unibo.it> wrote:

> Send CWB mailing list submissions to
>         cwb at sslmit.unibo.it
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         http://devel.sslmit.unibo.it/mailman/listinfo/cwb
> or, via email, send a message with subject or body 'help' to
>         cwb-request at sslmit.unibo.it
>
> You can reach the person managing the list at
>         cwb-owner at sslmit.unibo.it
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of CWB digest..."
>
>
> Today's Topics:
>
>    1. Re: CQPWeb -- Negation operator in simple query language
>       (Mart? Quixal)
>    2. Re: CQPWeb -- Query restriction using file-level free text
>       metadata (Mart? Quixal)
>    3. Re: CQPWeb -- Negation operator in simple query language
>       (Stefan Evert)
>    4. Re: CQPWeb -- Negation operator in simple query language
>       (Hardie, Andrew)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Wed, 31 Oct 2012 08:56:42 -0500
> From: Mart? Quixal <marti.quixal at gmail.com>
> To: cwb at sslmit.unibo.it
> Subject: Re: [CWB] CQPWeb -- Negation operator in simple query
>         language
> Message-ID:
>         <
> CAMtTwm9uEneoZpOGhs7P9+WCOtKD6SdDG5xV3knkxoVK0JwHLA at mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> Then, may I a suggest to include this negation operator in a future
> version, if it's not too complex/much work?
>
> Thanks for all the valuable work!
> Marti
>
>
>  Message: 1
> > Date: Wed, 31 Oct 2012 03:07:11 +0000
> > From: "Hardie, Andrew" <a.hardie at lancaster.ac.uk>
> > To: Open source development of the Corpus WorkBench
> >         <cwb at sslmit.unibo.it>
> > Subject: Re: [CWB] CQPWeb -- Negation operator in simple query
> >         language
> > Message-ID:
> >         <28078EC3FBF1B940A3EF3D0D19BE351D0EB8AD at EX-0-MB1.lancs.local>
> > Content-Type: text/plain; charset="utf-8"
> >
> > No, there?s not.
> >
> > best
> >
> > Andrew.
> >
> > From: cwb-bounces at sslmit.unibo.it [mailto:cwb-bounces at sslmit.unibo.it]
> On
> > Behalf Of Mart? Quixal
> > Sent: 30 October 2012 22:59
> > To: cwb at sslmit.unibo.it
> > Subject: [CWB] CQPWeb -- Negation operator in simple query language
> >
> > Hi,
> >
> > I can seem to find the negation operator for the simple query language.
> > Like != in CQP syntax. Is there one?
> >
> > Thanks in advance,
> >
> > --
> > Mart? Quixal
> > Computational Linguist & Educational Technologist
> > http://www.iqubo.org/quixal
> >
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://devel.sslmit.unibo.it/pipermail/cwb/attachments/20121031/fb57a413/attachment-0001.html
> >
>
> ------------------------------
>
> Message: 2
> Date: Wed, 31 Oct 2012 09:02:50 -0500
> From: Mart? Quixal <marti.quixal at gmail.com>
> To: cwb at sslmit.unibo.it
> Subject: Re: [CWB] CQPWeb -- Query restriction using file-level free
>         text    metadata
> Message-ID:
>         <
> CAMtTwm-9Bzz387LXg-7j9OX56v+1Dz05gA2-Pk+4OxHY9FGsLw at mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> Andrew, I agree with you except that I could imagine a box or set of
> boxes/drop-down menus (maybe one that you could show/hide) with a behaviour
> similar to the current option for building subcorpora. Though maybe this is
> something more for a customisation of CQPWeb than for the standard
> distribution.
>
> Please don't take this as I am willing to suggest any changes. It's already
> very useful and easy how it currently is (for a typical user).
>
> Thanks a lot and congratulations for this awesome work!
>
> Best regards,
> Marti
>
>
> On Wed, Oct 31, 2012 at 6:00 AM, <cwb-request at sslmit.unibo.it> wrote:
>
> > Send CWB mailing list submissions to
> >         cwb at sslmit.unibo.it
> >
> > To subscribe or unsubscribe via the World Wide Web, visit
> >         http://devel.sslmit.unibo.it/mailman/listinfo/cwb
> > or, via email, send a message with subject or body 'help' to
> >         cwb-request at sslmit.unibo.it
> >
> > You can reach the person managing the list at
> >         cwb-owner at sslmit.unibo.it
> >
> > When replying, please edit your Subject line so it is more specific
> > than "Re: Contents of CWB digest..."
> >
> >
> > Today's Topics:
> >
> >    1. Re: CQPWeb -- Negation operator in simple query language
> >       (Hardie, Andrew)
> >    2. Re: CQPWeb -- Query restriction using file-level free     text
> >       metadata (Hardie, Andrew)
> >
> >
> > ----------------------------------------------------------------------
> >
> > Message: 1
> > Date: Wed, 31 Oct 2012 03:07:11 +0000
> > From: "Hardie, Andrew" <a.hardie at lancaster.ac.uk>
> > To: Open source development of the Corpus WorkBench
> >         <cwb at sslmit.unibo.it>
> > Subject: Re: [CWB] CQPWeb -- Negation operator in simple query
> >         language
> > Message-ID:
> >         <28078EC3FBF1B940A3EF3D0D19BE351D0EB8AD at EX-0-MB1.lancs.local>
> > Content-Type: text/plain; charset="utf-8"
> >
> > No, there?s not.
> >
> > best
> >
> > Andrew.
> >
> > From: cwb-bounces at sslmit.unibo.it [mailto:cwb-bounces at sslmit.unibo.it]
> On
> > Behalf Of Mart? Quixal
> > Sent: 30 October 2012 22:59
> > To: cwb at sslmit.unibo.it
> > Subject: [CWB] CQPWeb -- Negation operator in simple query language
> >
> > Hi,
> >
> > I can seem to find the negation operator for the simple query language.
> > Like != in CQP syntax. Is there one?
> >
> > Thanks in advance,
> >
> > --
> > Mart? Quixal
> > Computational Linguist & Educational Technologist
> > http://www.iqubo.org/quixal
> >
> > -------------- next part --------------
> > An HTML attachment was scrubbed...
> > URL: <
> >
> http://devel.sslmit.unibo.it/pipermail/cwb/attachments/20121031/9e4bb2b2/attachment-0001.html
> > >
> >
> > ------------------------------
> >
> > Message: 2
> > Date: Wed, 31 Oct 2012 03:13:23 +0000
> > From: "Hardie, Andrew" <a.hardie at lancaster.ac.uk>
> > To: Open source development of the Corpus WorkBench
> >         <cwb at sslmit.unibo.it>
> > Subject: Re: [CWB] CQPWeb -- Query restriction using file-level free
> >         text    metadata
> > Message-ID:
> >         <28078EC3FBF1B940A3EF3D0D19BE351D0EB8C2 at EX-0-MB1.lancs.local>
> > Content-Type: text/plain; charset="utf-8"
> >
> > The Restricted Query interface works solely off Classification metadata.
> > The ?right way? to search free-text metadata is via the subcorpus-create
> > function, as you suspect.
> >
> > The difference is that for Classifications, zones of the corpus are
> > predefined and can therefore be used to set up selectable restrictions.
> > With free-text metadata there is no knowing what someone is going to
> search
> > for ? so they have to actually search for what they want i.e. via the
> > subcorpus interface and then once they?ve found a selection of texts, the
> > subcorpus becomes available for restricting queries.
> >
> > I won?t argue that this will never be clumsy/confusing, however, I submit
> > that this organisation is less clumsy and confusing than it would be to
> > cram both the classification-based restrictions and the (multiple) search
> > forms for free-text metadata all into one web form!
> >
> > best
> >
> > Andrew.
> >
> > From: cwb-bounces at sslmit.unibo.it [mailto:cwb-bounces at sslmit.unibo.it]
> On
> > Behalf Of Mart? Quixal
> > Sent: 30 October 2012 23:00
> > To: cwb at sslmit.unibo.it
> > Subject: [CWB] CQPWeb -- Query restriction using file-level free text
> > metadata
> >
> > Hi,
> >
> > I have a corpus for which I have file level metadata in CQP web. I
> > currently have a couple of classification metadata and a couple of free
> > text metadata.
> >
> > When I go to the Restricted query interface I get checkboxes for Gender
> > and Location (my classification metadata) but not for the others
> (Interview
> > ID, Age, Year). Is there any possibility to restrict queries on the basis
> > of those free text metadata on this restricted query interface. I have
> seen
> > I can create subcorpora, but that seems can be a bit clumsy/confusing for
> > the users (foreign language teachers) I have in mind.
> >
> > By the way in the "Manage metadata" interface I have seen I can include
> > corpus-level metadata. Are these metadata different from the metadata
> added
> > at the text-level (that is, using the text id)?
> >
> > Thanks in advance,
> >
> > --
> > Mart? Quixal
> > Computational Linguist & Educational Technologist
> > http://www.iqubo.org/quixal
> >
> > -------------- next part --------------
> > An HTML attachment was scrubbed...
> > URL: <
> >
> http://devel.sslmit.unibo.it/pipermail/cwb/attachments/20121031/de73446e/attachment-0001.html
> > >
> >
> > ------------------------------
> >
> > _______________________________________________
> > CWB mailing list
> > CWB at sslmit.unibo.it
> > http://devel.sslmit.unibo.it/mailman/listinfo/cwb
> >
> >
> > End of CWB Digest, Vol 70, Issue 43
> > ***********************************
> >
>
>
>
> --
> Mart? Quixal
> Computational Linguist & Educational Technologist
> http://www.iqubo.org/quixal
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://devel.sslmit.unibo.it/pipermail/cwb/attachments/20121031/a557afe5/attachment-0001.html
> >
>
> ------------------------------
>
> Message: 3
> Date: Wed, 31 Oct 2012 16:12:56 +0100
> From: Stefan Evert <stefanML at collocations.de>
> To: Open source development of the Corpus WorkBench
>         <cwb at sslmit.unibo.it>
> Subject: Re: [CWB] CQPWeb -- Negation operator in simple query
>         language
> Message-ID: <AE8E56D4-DD19-4469-A06E-2ED0E5FC5D75 at collocations.de>
> Content-Type: text/plain; charset=us-ascii
>
>
> > Then, may I a suggest to include this negation operator in a future
> version, if it's not too complex/much work?
>
> Well, that's the "simple" part of the simple query language.  If CEQL
> could do everything, nobody would learn CQP syntax any more. ;-)
>
> Seriously, I have given some thought to this, of course, but I found that
> simple negation is rarely needed or very useful unless it's part of a more
> complex Boolean condition.  Adding such flexible negation patterns to CEQL
> creates too much complexity for a simple query language -- in my opinion,
> the more verbose CQP syntax is much better suited to such queries.  And
> then there's the issue of backward compatibility, as CEQL is by now in use
> by a fairly large number of BNCweb and CQPweb servers.
>
> What's your concrete use case for the negation?
>
> In any case, CEQL is designed to be extensible, so you can add your own
> rules (written as Perl subroutines) in order to implement negation (and
> defined your own syntax that works for your users).  I'm sure that Andrew
> will allow custom CEQL extension in the CQPweb admin interface sooner or
> later ...
>
> Best,
> Stefan
>
>
>
>
>
> ------------------------------
>
> Message: 4
> Date: Wed, 31 Oct 2012 16:09:45 +0000
> From: "Hardie, Andrew" <a.hardie at lancaster.ac.uk>
> To: Open source development of the Corpus WorkBench
>         <cwb at sslmit.unibo.it>
> Subject: Re: [CWB] CQPWeb -- Negation operator in simple query
>         language
> Message-ID:
>         <28078EC3FBF1B940A3EF3D0D19BE351D0EBFD5 at EX-0-MB1.lancs.local>
> Content-Type: text/plain; charset="us-ascii"
>
> >> I'm sure that Andrew will allow custom CEQL extension in the CQPweb
> admin interface sooner or later ...
>
> I fully intend to get round to this eventually, perhaps after I finally
> get the long-promised ground-up rewrite in INTERCAL out of the way.
>
> Andrew.
>
> (ps I concur, my take is: by and large, we should anticipate that most
> users who are capable of getting their head round Boolean conditions will
> be "advanced" enough to benefit from using full CQP-syntax....)
>
> -----Original Message-----
> From: cwb-bounces at sslmit.unibo.it [mailto:cwb-bounces at sslmit.unibo.it] On
> Behalf Of Stefan Evert
> Sent: 31 October 2012 15:13
> To: Open source development of the Corpus WorkBench
> Subject: Re: [CWB] CQPWeb -- Negation operator in simple query language
>
>
> > Then, may I a suggest to include this negation operator in a future
> version, if it's not too complex/much work?
>
> Well, that's the "simple" part of the simple query language.  If CEQL
> could do everything, nobody would learn CQP syntax any more. ;-)
>
> Seriously, I have given some thought to this, of course, but I found that
> simple negation is rarely needed or very useful unless it's part of a more
> complex Boolean condition.  Adding such flexible negation patterns to CEQL
> creates too much complexity for a simple query language -- in my opinion,
> the more verbose CQP syntax is much better suited to such queries.  And
> then there's the issue of backward compatibility, as CEQL is by now in use
> by a fairly large number of BNCweb and CQPweb servers.
>
> What's your concrete use case for the negation?
>
> In any case, CEQL is designed to be extensible, so you can add your own
> rules (written as Perl subroutines) in order to implement negation (and
> defined your own syntax that works for your users).  I'm sure that Andrew
> will allow custom CEQL extension in the CQPweb admin interface sooner or
> later ...
>
> Best,
> Stefan
>
>
>
> _______________________________________________
> 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
>
>
> End of CWB Digest, Vol 70, Issue 44
> ***********************************
>



-- 
Martí Quixal
Computational Linguist & Educational Technologist
http://www.iqubo.org/quixal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://devel.sslmit.unibo.it/pipermail/cwb/attachments/20121031/2f37c09d/attachment-0001.html>


More information about the CWB mailing list