[CWB] Dramatic texts in cqpweb

Hardie, Andrew a.hardie at lancaster.ac.uk
Sun Nov 26 09:20:19 CET 2017


I think the problem is that you did not switch the query mode to CQP syntax.

Also, note the positioning of the brackets in my version of the first of your queries.

best

Andrew.

From: cwb-bounces at sslmit.unibo.it [mailto:cwb-bounces at sslmit.unibo.it] On Behalf Of Graham Ranger
Sent: 26 November 2017 08:15
To: cwb at sslmit.unibo.it
Subject: Re: [CWB] Dramatic texts in cqpweb

Hi Andrew,
Thanks for getting back so quickly.
Unfortunately, the queries throw up error messages.
The query (the character's name changes, but that's all):


n:[word="sort"] & [pos="NOM"] :: n.sp_who="SGANRARELLE";
gives me:

**Error:** bracketing is not balanced: too many opening delimiters of type ''[...]'' - at this location: '' n: [ word="sort" ''**<==**'' '' - when parsing '' n:[word="sort" '' as **wildcard_pattern**, **wordform_pattern**, **word_or_lemma**, **word_or_lemma_constraint**, **token_expression**, **phrase_element** - at this location: '' n:[word="sort" ''**<==**'' & pos="NOM"] :: n.sp_who="SGANARELLE"; '' - when parsing '' n:[word="sort" & pos="NOM"] :: n.sp_who="SGANARELLE"; '' as **phrase_query** - when parsing '' n:[word="sort" & pos="NOM"] :: n.sp_who="SGANARELLE"; '' as **default**

While the second query

n:[word="coeur"] :: n.sp_who="SGANARELLE" & n.div1_type="act" & n.div1_n="1";

gives me:

**** CQP ERROR ****
Regex Compile Error: Unmatched [ or [^
CQP Error:
Illegal regular expression: who="SGANARELLE""] [word=
CQP Error:
CQP Syntax Error: syntax error, unexpected STRING
for reasons I cannot understand.
Thanks for your help.
Best wishes,
Graham.

Le 26/11/2017 à 03:45, Hardie, Andrew a écrit :

Hi Graham,



Re this: n:[word="sort"] & [pos="NOM"] :: n.sp_who="HARPAGON";



Try



n:[word="sort" & pos="NOM"] :: n.sp_who="HARPAGON";



And re this, n:[word="coeur"] :: n.sp_who="HARPAGON" & div1_type="act" & div1_n="1";



Try



n:[word="coeur"] :: n.sp_who="HARPAGON" & n.div1_type="act" & n.div1_n="1";





best



Andrew.



-----Original Message-----

From: cwb-bounces at sslmit.unibo.it<mailto:cwb-bounces at sslmit.unibo.it> [mailto:cwb-bounces at sslmit.unibo.it] On Behalf Of Graham Ranger

Sent: 25 November 2017 17:57

To: cwb at sslmit.unibo.it<mailto:cwb at sslmit.unibo.it>

Subject: Re: [CWB] Dramatic texts in cqpweb



Hello to all,

Thanks to the list members, a beta version of a corpus of theatrical

texts is now up and running.

I am now exploring query possibilities.

In particular, Andrew suggested searching for, say, word "a" uttered by

speaker "b" with the following type of cqp query:

n:[word="a"] :: n.sp_who="b";

This works nicely.

I'm now wondering whether it is possible to 1) have labels that

associate multiple attributes and 2) have global constraints bearing on

more than one condition.

In other words, I'd like to make queries such as:

n:[word="sort"] & [pos="NOM"] :: n.sp_who="HARPAGON";

to look for all occurrences of the French noun "sort" uttered by the

character Harpagon

or:

n:[word="coeur"] :: n.sp_who="HARPAGON" & div1_type="act" & div1_n="1";

to look for all occurrences of the word "coeur" uttered by the character

Harpagon in Act One.

Is this sort of combination possible, or am I asking too much? Thanks as

ever for your answers.

Best,

Graham.

_______________________________________________

CWB mailing list

CWB at sslmit.unibo.it<mailto:CWB at sslmit.unibo.it>

http://liste.sslmit.unibo.it/mailman/listinfo/cwb

_______________________________________________

CWB mailing list

CWB at sslmit.unibo.it<mailto:CWB at sslmit.unibo.it>

http://liste.sslmit.unibo.it/mailman/listinfo/cwb

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://liste.sslmit.unibo.it/pipermail/cwb/attachments/20171126/6361d09a/attachment-0001.html>


More information about the CWB mailing list