<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Hi Andrew,<br>
    Thanks for getting back so quickly.<br>
    Unfortunately, the queries throw up error messages.<br>
    The query (the character's name changes, but that's all):<br>
    <pre wrap="">n:[word="sort"] &amp; [pos="NOM"] :: n.sp_who="SGANRARELLE";</pre>
    gives me:<br>
    <br>
    **Error:** bracketing is not balanced: too many opening delimiters
    of type ''[...]'' - at this location: '' n: [ word="sort"
    ''**&lt;==**'' '' - 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"
    ''**&lt;==**'' &amp; pos="NOM"] :: n.sp_who="SGANARELLE"; '' - when
    parsing '' n:[word="sort" &amp; pos="NOM"] :: n.sp_who="SGANARELLE";
    '' as **phrase_query** - when parsing '' n:[word="sort" &amp;
    pos="NOM"] :: n.sp_who="SGANARELLE"; '' as **default**<br>
    <br>
    While the second query<br>
    <br>
    n:[word="coeur"] :: n.sp_who="SGANARELLE" &amp; n.div1_type="act"
    &amp; n.div1_n="1";<br>
    <br>
    gives me:<br>
    <p class="errormessage">**** CQP ERROR ****<br>
      Regex Compile Error: Unmatched [ or [^<br>
      CQP Error:<br>
      Illegal regular expression: who="SGANARELLE""] [word=<br>
      CQP Error:<br>
      CQP Syntax Error: syntax error, unexpected STRING<br>
    </p>
    for reasons I cannot understand.<br>
    Thanks for your help.<br>
    Best wishes,<br>
    Graham.<br>
     <br>
    <br>
    <div class="moz-cite-prefix">Le 26/11/2017 à 03:45, Hardie, Andrew a
      écrit :<br>
    </div>
    <blockquote type="cite"
      cite="mid:28078EC3FBF1B940A3EF3D0D19BE351DDEA5931F@EX-0-MB1.lancs.local">
      <pre wrap="">Hi Graham,

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

Try

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

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

Try

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


best

Andrew.

-----Original Message-----
From: <a class="moz-txt-link-abbreviated" href="mailto:cwb-bounces@sslmit.unibo.it">cwb-bounces@sslmit.unibo.it</a> [<a class="moz-txt-link-freetext" href="mailto:cwb-bounces@sslmit.unibo.it">mailto:cwb-bounces@sslmit.unibo.it</a>] On Behalf Of Graham Ranger
Sent: 25 November 2017 17:57
To: <a class="moz-txt-link-abbreviated" href="mailto:cwb@sslmit.unibo.it">cwb@sslmit.unibo.it</a>
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"] &amp; [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" &amp; div1_type="act" &amp; 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
<a class="moz-txt-link-abbreviated" href="mailto:CWB@sslmit.unibo.it">CWB@sslmit.unibo.it</a>
<a class="moz-txt-link-freetext" href="http://liste.sslmit.unibo.it/mailman/listinfo/cwb">http://liste.sslmit.unibo.it/mailman/listinfo/cwb</a>
_______________________________________________
CWB mailing list
<a class="moz-txt-link-abbreviated" href="mailto:CWB@sslmit.unibo.it">CWB@sslmit.unibo.it</a>
<a class="moz-txt-link-freetext" href="http://liste.sslmit.unibo.it/mailman/listinfo/cwb">http://liste.sslmit.unibo.it/mailman/listinfo/cwb</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>