From qumino2 at gmail.com Tue Sep 2 13:27:14 2025 From: qumino2 at gmail.com (Min Qu) Date: Tue, 2 Sep 2025 19:27:14 +0800 Subject: [CWB] Text-level restricted query error Message-ID: Dear CWB friends, I am encountering an error when I run the query `*[lemma="run" & text_author="Muir, John, 1838-1914"]*` on our CQPweb. The error details are as follows: [image: image.png] [image: image.png] Does anyone know why this error might be occurring? Basically, I am trying to make a restricted query based on the Text XML element's attribute (which is Free text datatype). Thank you, Min Best, Qu Min -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image.png Type: image/png Size: 26944 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image.png Type: image/png Size: 92178 bytes Desc: not available URL: From stefanML at collocations.de Tue Sep 2 21:22:06 2025 From: stefanML at collocations.de (Stephanie Evert) Date: Tue, 2 Sep 2025 21:22:06 +0200 Subject: [CWB] Text-level restricted query error In-Reply-To: References: Message-ID: <940F3D30-4F05-4DCC-9B95-750C3432785F@collocations.de> > I am encountering an error when I run the query `[lemma="run" & text_author="Muir, John, 1838-1914"]` on our CQPweb. I assume that text_author is an s-attribute. In this case, you need a different syntax to access its annotation [lemma="run" & _.text_author="Muir, John, 1838-1914"] The "this" label _ refers to the current token and allows you to access the values of s-attributes, which are only exposed through label references. I often find it more readable to specify metadata filters as a global constraint, e.g. [lemma="run"] :: match.text_author="Muir, John, 1838-1914" > Does anyone know why this error might be occurring? The error message is indeed a bit cryptic. The full explanation is that bare references to s-attributes are allowed, but always return an integer code that is 0 outside a region of the specified type, and nonzero inside. This allows you to find tokens e.g. inside a element with [lemma="run" & head] or even the lemma "run" at the start of a sentence: [lemma="run" & lbound(head)] where the builtin lbound() function tests appropriate bits of the integer code. Another use is to find any tokens in the corpus that are not wrapped in an element (assuming this should not happen). [!s] In your query, text_author returns such an integer code, which cannot be compared with a string value. Best, Stephanie [educating the CWB community, one query at a time] From qumino2 at gmail.com Wed Sep 3 05:13:23 2025 From: qumino2 at gmail.com (Min Qu) Date: Wed, 3 Sep 2025 11:13:23 +0800 Subject: [CWB] Text-level restricted query error In-Reply-To: <940F3D30-4F05-4DCC-9B95-750C3432785F@collocations.de> References: <940F3D30-4F05-4DCC-9B95-750C3432785F@collocations.de> Message-ID: Dear Stephanie, It works perfectly following your guide! You are truly educating the CWB community, one query at a time, and our team has learned a great deal from your detailed and insightful reply. Best, Min On Wed, Sep 3, 2025 at 3:28?AM Stephanie Evert wrote: > > > I am encountering an error when I run the query `[lemma="run" & > text_author="Muir, John, 1838-1914"]` on our CQPweb. > > I assume that text_author is an s-attribute. In this case, you need a > different syntax to access its annotation > > [lemma="run" & _.text_author="Muir, John, 1838-1914"] > > The "this" label _ refers to the current token and allows you to access > the values of s-attributes, which are only exposed through label > references. I often find it more readable to specify metadata filters as a > global constraint, e.g. > > [lemma="run"] :: match.text_author="Muir, John, 1838-1914" > > > Does anyone know why this error might be occurring? > > The error message is indeed a bit cryptic. The full explanation is that > bare references to s-attributes are allowed, but always return an integer > code that is 0 outside a region of the specified type, and nonzero inside. > This allows you to find tokens e.g. inside a element with > > [lemma="run" & head] > > or even the lemma "run" at the start of a sentence: > > [lemma="run" & lbound(head)] > > where the builtin lbound() function tests appropriate bits of the integer > code. Another use is to find any tokens in the corpus that are not wrapped > in an element (assuming this should not happen). > > [!s] > > In your query, text_author returns such an integer code, which cannot be > compared with a string value. > > Best, > Stephanie [educating the CWB community, one query at a time] > _______________________________________________ > CWB mailing list > CWB at sslmit.unibo.it > http://liste.sslmit.unibo.it/mailman/listinfo/cwb > -------------- next part -------------- An HTML attachment was scrubbed... URL: From qumino2 at gmail.com Wed Sep 3 05:35:59 2025 From: qumino2 at gmail.com (Min Qu) Date: Wed, 3 Sep 2025 11:35:59 +0800 Subject: [CWB] Text-level restricted query error In-Reply-To: References: <940F3D30-4F05-4DCC-9B95-750C3432785F@collocations.de> Message-ID: Dear Stephanie, In terms of CQP syntax and the management of CQPweb, we were wondering if the *full CQP-syntax tutorial *and the *CQPweb Admin Manual* are the definitive sources of truth that we should be referring to. Thank you once again for your invaluable guidance. Best, Min On Wed, Sep 3, 2025 at 11:13?AM Min Qu wrote: > Dear Stephanie, > > It works perfectly following your guide! You are truly educating the CWB > community, one query at a time, and our team has learned a great deal from > your detailed and insightful reply. > > > Best, > Min > > > On Wed, Sep 3, 2025 at 3:28?AM Stephanie Evert > wrote: > >> >> > I am encountering an error when I run the query `[lemma="run" & >> text_author="Muir, John, 1838-1914"]` on our CQPweb. >> >> I assume that text_author is an s-attribute. In this case, you need a >> different syntax to access its annotation >> >> [lemma="run" & _.text_author="Muir, John, 1838-1914"] >> >> The "this" label _ refers to the current token and allows you to access >> the values of s-attributes, which are only exposed through label >> references. I often find it more readable to specify metadata filters as a >> global constraint, e.g. >> >> [lemma="run"] :: match.text_author="Muir, John, 1838-1914" >> >> > Does anyone know why this error might be occurring? >> >> The error message is indeed a bit cryptic. The full explanation is that >> bare references to s-attributes are allowed, but always return an integer >> code that is 0 outside a region of the specified type, and nonzero inside. >> This allows you to find tokens e.g. inside a element with >> >> [lemma="run" & head] >> >> or even the lemma "run" at the start of a sentence: >> >> [lemma="run" & lbound(head)] >> >> where the builtin lbound() function tests appropriate bits of the integer >> code. Another use is to find any tokens in the corpus that are not wrapped >> in an element (assuming this should not happen). >> >> [!s] >> >> In your query, text_author returns such an integer code, which cannot be >> compared with a string value. >> >> Best, >> Stephanie [educating the CWB community, one query at a time] >> _______________________________________________ >> CWB mailing list >> CWB at sslmit.unibo.it >> http://liste.sslmit.unibo.it/mailman/listinfo/cwb >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From stefanML at collocations.de Wed Sep 3 16:56:26 2025 From: stefanML at collocations.de (Stephanie Evert) Date: Wed, 3 Sep 2025 16:56:26 +0200 Subject: [CWB] Text-level restricted query error In-Reply-To: References: <940F3D30-4F05-4DCC-9B95-750C3432785F@collocations.de> Message-ID: <5E6A86BC-723D-41ED-BCE0-80A8A1F37FD6@collocations.de> > On 3 Sep 2025, at 05:35, Min Qu wrote: > > In terms of CQP syntax and the management of CQPweb, we were wondering if the full CQP-syntax tutorial and the CQPweb Admin Manual are the definitive sources of truth that we should be referring to. Yes, the CQP Query Language Manual (it's no longer a tutorial!) is the official and definitive documentation of CQP queries. I'm not so sure about the status of the CQPweb Admin Manual, though. Andrew will have to answer that part. Best, Stephanie -------------- next part -------------- An HTML attachment was scrubbed... URL: From a.hardie at lancaster.ac.uk Fri Sep 5 11:38:43 2025 From: a.hardie at lancaster.ac.uk (Hardie, Andrew) Date: Fri, 5 Sep 2025 09:38:43 +0000 Subject: [CWB] Text-level restricted query error In-Reply-To: <5E6A86BC-723D-41ED-BCE0-80A8A1F37FD6@collocations.de> References: <940F3D30-4F05-4DCC-9B95-750C3432785F@collocations.de> <5E6A86BC-723D-41ED-BCE0-80A8A1F37FD6@collocations.de> Message-ID: the admin manual is a constant work in progress, but there's nothing more complete available. best Andrew. From: CWB On Behalf Of Stephanie Evert Sent: 03 September 2025 15:56 To: CWBdev Mailing List Subject: Re: [CWB] Text-level restricted query error On 3 Sep 2025, at 05:35, Min Qu > wrote: In terms of CQP syntax and the management of CQPweb, we were wondering if the full CQP-syntax tutorial and the CQPweb Admin Manual are the definitive sources of truth that we should be referring to. Yes, the CQP Query Language Manual (it's no longer a tutorial!) is the official and definitive documentation of CQP queries. I'm not so sure about the status of the CQPweb Admin Manual, though. Andrew will have to answer that part. Best, Stephanie -------------- next part -------------- An HTML attachment was scrubbed... URL: From ssadowsky at gmail.com Wed Sep 24 17:12:05 2025 From: ssadowsky at gmail.com (Scott Sadowsky) Date: Wed, 24 Sep 2025 12:12:05 -0300 Subject: [CWB] Retaining sign-up requirement WITHOUT confirmation e-mail Message-ID: In something like five years I have never gotten my CWB server's confirmation e-mails to be delivered to those who want to open an account more than very, very sporadically. Undoubtedly a me problem, but I haven't been able to solve it, and a lot of people just give up at that point, so I'd like to eliminate the confirmation e-mail requirement while retaining the sign-up requirement. It doesn't guarantee much, but at least it's something, and is occasionally useful for getting in touch with good-faith actors. How do I do this, though? Unless I'm reading the manual wrong, it seems to be an all-or-nothing affair. Thanks in advance! Scott -------------- next part -------------- An HTML attachment was scrubbed... URL: From ssadowsky at gmail.com Sat Sep 27 17:56:56 2025 From: ssadowsky at gmail.com (Scott Sadowsky) Date: Sat, 27 Sep 2025 10:56:56 -0500 Subject: [CWB] Retaining sign-up requirement WITHOUT confirmation e-mail In-Reply-To: References: Message-ID: Sorry to self-bump, but does anyone have a solution for this? On Wed, Sep 24, 2025 at 10:12?AM Scott Sadowsky wrote: > In something like five years I have never gotten my CWB server's > confirmation e-mails to be delivered to those who want to open an account > more than very, very sporadically. Undoubtedly a me problem, but I haven't > been able to solve it, and a lot of people just give up at that point, so > I'd like to eliminate the confirmation e-mail requirement while retaining > the sign-up requirement. It doesn't guarantee much, but at least it's > something, and is occasionally useful for getting in touch with good-faith > actors. > > How do I do this, though? Unless I'm reading the manual wrong, it seems to > be an all-or-nothing affair. > > Thanks in advance! > Scott > -------------- next part -------------- An HTML attachment was scrubbed... URL: From qumino2 at gmail.com Sun Sep 28 06:53:50 2025 From: qumino2 at gmail.com (Min Qu) Date: Sun, 28 Sep 2025 12:53:50 +0800 Subject: [CWB] Retaining sign-up requirement WITHOUT confirmation e-mail In-Reply-To: References: Message-ID: [image: image.png] Same issue here. It's mentioned on https://cqpweb.lancs.ac.uk/ as well. Best, Qu Min On Sat, Sep 27, 2025 at 11:58?PM Scott Sadowsky via CWB wrote: > Sorry to self-bump, but does anyone have a solution for this? > > > On Wed, Sep 24, 2025 at 10:12?AM Scott Sadowsky > wrote: > >> In something like five years I have never gotten my CWB server's >> confirmation e-mails to be delivered to those who want to open an account >> more than very, very sporadically. Undoubtedly a me problem, but I haven't >> been able to solve it, and a lot of people just give up at that point, so >> I'd like to eliminate the confirmation e-mail requirement while retaining >> the sign-up requirement. It doesn't guarantee much, but at least it's >> something, and is occasionally useful for getting in touch with good-faith >> actors. >> >> How do I do this, though? Unless I'm reading the manual wrong, it seems >> to be an all-or-nothing affair. >> >> Thanks in advance! >> Scott >> > _______________________________________________ > CWB mailing list > CWB at sslmit.unibo.it > http://liste.sslmit.unibo.it/mailman/listinfo/cwb > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image.png Type: image/png Size: 56471 bytes Desc: not available URL: From a.hardie at lancaster.ac.uk Tue Sep 30 03:08:20 2025 From: a.hardie at lancaster.ac.uk (Hardie, Andrew) Date: Tue, 30 Sep 2025 01:08:20 +0000 Subject: [CWB] Retaining sign-up requirement WITHOUT confirmation e-mail In-Reply-To: References: Message-ID: Hi Scott, Qu Min, and all, There?s a long history to this. What has happened is that, over the years, more and more of the free email services have started blocking the CQPweb signup emails. Not sending them to spam ? blocking totally. It began about 6 years ago with Yahoo if I recall correctly, but the problem really got bad a couple of years ago when Gmail started blocking them too, Gmail being the most widely used such service. I am not entirely sure how it is that these systems are identifying the emails as spam/phishing, but that?s what?s happening. My best guess is that is because the messages contain a hyperlink that the user is instructed to click. However, I have not had time to experiment with the effect of removing the hyperlink. If anyone does have time to play around, it is found on line 471 of useracct-lib.php. ANYWAY. To present concerns. I have just committed an update with a new configuration variable: ## If true, the account-creation process requires entry of a verification code sent by email. # $account_create_verify_email = true; So if you add the following line to your config file, $account_create_verify_email = false; then the verification step will be switched off and account creation will always succeed immediately. (Requires you to be running the bleeding edge of course) Unfortunately I can?t use this myself on cqpweb.lancs.ac.uk because email addresses are used to link new accounts to institutions ? which gives people access to various corpora. If I switched off verification, anybody could pretend to have an @lancaster.ac.uk email address and be given access to our non-open datasets. That can?t be risked for various IP / ethics reasons. best Andrew. From: CWB On Behalf Of Min Qu via CWB Sent: 28 September 2025 05:54 To: ssadowsky at gmail.com; Open source development of the Corpus WorkBench Cc: Min Qu Subject: Re: [CWB] Retaining sign-up requirement WITHOUT confirmation e-mail [cid:image001.png at 01DC31AD.F4566C40] Same issue here. It's mentioned on https://cqpweb.lancs.ac.uk/ as well. Best, Qu Min On Sat, Sep 27, 2025 at 11:58?PM Scott Sadowsky via CWB > wrote: Sorry to self-bump, but does anyone have a solution for this? On Wed, Sep 24, 2025 at 10:12?AM Scott Sadowsky > wrote: In something like five years I have never gotten my CWB server's confirmation e-mails to be delivered to those who want to open an account more than very, very sporadically. Undoubtedly a me problem, but I haven't been able to solve it, and a lot of people just give up at that point, so I'd like to eliminate the confirmation e-mail requirement while retaining the sign-up requirement. It doesn't guarantee much, but at least it's something, and is occasionally useful for getting in touch with good-faith actors. How do I do this, though? Unless I'm reading the manual wrong, it seems to be an all-or-nothing affair. Thanks in advance! Scott _______________________________________________ CWB mailing list CWB at sslmit.unibo.it http://liste.sslmit.unibo.it/mailman/listinfo/cwb -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 56471 bytes Desc: image001.png URL: