<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";
        color:black;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";
        color:black;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;
        color:black;}
p.errormessage, li.errormessage, div.errormessage
        {mso-style-name:errormessage;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";
        color:black;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";
        color:black;}
span.EmailStyle22
        {mso-style-type:personal-reply;
        font-family:"Verdana","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body bgcolor="white" lang="EN-GB" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#1F497D">I think the problem is that you did not switch the query mode to CQP syntax.
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#1F497D">Also, note the positioning of the brackets in my version of the first of your queries.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#1F497D">best<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#1F497D">Andrew.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:windowtext">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:windowtext"> cwb-bounces@sslmit.unibo.it
 [mailto:cwb-bounces@sslmit.unibo.it] <b>On Behalf Of </b>Graham Ranger<br>
<b>Sent:</b> 26 November 2017 08:15<br>
<b>To:</b> cwb@sslmit.unibo.it<br>
<b>Subject:</b> Re: [CWB] Dramatic texts in cqpweb<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">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>
<br>
<o:p></o:p></p>
<pre>n:[word=&quot;sort&quot;] &amp; [pos=&quot;NOM&quot;] :: n.sp_who=&quot;SGANRARELLE&quot;;<o:p></o:p></pre>
<p class="MsoNormal">gives me:<br>
<br>
**Error:** bracketing is not balanced: too many opening delimiters of type ''[...]'' - at this location: '' n: [ word=&quot;sort&quot; ''**&lt;==**'' '' - when parsing '' n:[word=&quot;sort&quot; '' as **wildcard_pattern**, **wordform_pattern**, **word_or_lemma**, **word_or_lemma_constraint**,
 **token_expression**, **phrase_element** - at this location: '' n:[word=&quot;sort&quot; ''**&lt;==**'' &amp; pos=&quot;NOM&quot;] :: n.sp_who=&quot;SGANARELLE&quot;; '' - when parsing '' n:[word=&quot;sort&quot; &amp; pos=&quot;NOM&quot;] :: n.sp_who=&quot;SGANARELLE&quot;; '' as **phrase_query** - when parsing '' n:[word=&quot;sort&quot;
 &amp; pos=&quot;NOM&quot;] :: n.sp_who=&quot;SGANARELLE&quot;; '' as **default**<br>
<br>
While the second query<br>
<br>
n:[word=&quot;coeur&quot;] :: n.sp_who=&quot;SGANARELLE&quot; &amp; n.div1_type=&quot;act&quot; &amp; n.div1_n=&quot;1&quot;;<br>
<br>
gives me:<o:p></o:p></p>
<p class="errormessage">**** CQP ERROR ****<br>
Regex Compile Error: Unmatched [ or [^<br>
CQP Error:<br>
Illegal regular expression: who=&quot;SGANARELLE&quot;&quot;] [word=<br>
CQP Error:<br>
CQP Syntax Error: syntax error, unexpected STRING<o:p></o:p></p>
<p class="MsoNormal" style="margin-bottom:12.0pt">for reasons I cannot understand.<br>
Thanks for your help.<br>
Best wishes,<br>
Graham.<br>
&nbsp;<o:p></o:p></p>
<div>
<p class="MsoNormal">Le 26/11/2017 à 03:45, Hardie, Andrew a écrit&nbsp;:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<pre>Hi Graham,<o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre>Re this: n:[word=&quot;sort&quot;] &amp; [pos=&quot;NOM&quot;] :: n.sp_who=&quot;HARPAGON&quot;;<o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre>Try<o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre>n:[word=&quot;sort&quot; &amp; pos=&quot;NOM&quot;] :: n.sp_who=&quot;HARPAGON&quot;;<o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre>And re this, n:[word=&quot;coeur&quot;] :: n.sp_who=&quot;HARPAGON&quot; &amp; div1_type=&quot;act&quot; &amp; div1_n=&quot;1&quot;;<o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre>Try<o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre>n:[word=&quot;coeur&quot;] :: n.sp_who=&quot;HARPAGON&quot; &amp; n.div1_type=&quot;act&quot; &amp; n.div1_n=&quot;1&quot;;<o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre>best<o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre>Andrew.<o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre>-----Original Message-----<o:p></o:p></pre>
<pre>From: <a href="mailto:cwb-bounces@sslmit.unibo.it">cwb-bounces@sslmit.unibo.it</a> [<a href="mailto:cwb-bounces@sslmit.unibo.it">mailto:cwb-bounces@sslmit.unibo.it</a>] On Behalf Of Graham Ranger<o:p></o:p></pre>
<pre>Sent: 25 November 2017 17:57<o:p></o:p></pre>
<pre>To: <a href="mailto:cwb@sslmit.unibo.it">cwb@sslmit.unibo.it</a><o:p></o:p></pre>
<pre>Subject: Re: [CWB] Dramatic texts in cqpweb<o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre>Hello to all,<o:p></o:p></pre>
<pre>Thanks to the list members, a beta version of a corpus of theatrical <o:p></o:p></pre>
<pre>texts is now up and running.<o:p></o:p></pre>
<pre>I am now exploring query possibilities.<o:p></o:p></pre>
<pre>In particular, Andrew suggested searching for, say, word &quot;a&quot; uttered by <o:p></o:p></pre>
<pre>speaker &quot;b&quot; with the following type of cqp query:<o:p></o:p></pre>
<pre>n:[word=&quot;a&quot;] :: n.sp_who=&quot;b&quot;;<o:p></o:p></pre>
<pre>This works nicely.<o:p></o:p></pre>
<pre>I'm now wondering whether it is possible to 1) have labels that <o:p></o:p></pre>
<pre>associate multiple attributes and 2) have global constraints bearing on <o:p></o:p></pre>
<pre>more than one condition.<o:p></o:p></pre>
<pre>In other words, I'd like to make queries such as:<o:p></o:p></pre>
<pre>n:[word=&quot;sort&quot;] &amp; [pos=&quot;NOM&quot;] :: n.sp_who=&quot;HARPAGON&quot;;<o:p></o:p></pre>
<pre>to look for all occurrences of the French noun &quot;sort&quot; uttered by the <o:p></o:p></pre>
<pre>character Harpagon<o:p></o:p></pre>
<pre>or:<o:p></o:p></pre>
<pre>n:[word=&quot;coeur&quot;] :: n.sp_who=&quot;HARPAGON&quot; &amp; div1_type=&quot;act&quot; &amp; div1_n=&quot;1&quot;;<o:p></o:p></pre>
<pre>to look for all occurrences of the word &quot;coeur&quot; uttered by the character <o:p></o:p></pre>
<pre>Harpagon in Act One.<o:p></o:p></pre>
<pre>Is this sort of combination possible, or am I asking too much? Thanks as <o:p></o:p></pre>
<pre>ever for your answers.<o:p></o:p></pre>
<pre>Best,<o:p></o:p></pre>
<pre>Graham.<o:p></o:p></pre>
<pre>_______________________________________________<o:p></o:p></pre>
<pre>CWB mailing list<o:p></o:p></pre>
<pre><a href="mailto:CWB@sslmit.unibo.it">CWB@sslmit.unibo.it</a><o:p></o:p></pre>
<pre><a href="http://liste.sslmit.unibo.it/mailman/listinfo/cwb">http://liste.sslmit.unibo.it/mailman/listinfo/cwb</a><o:p></o:p></pre>
<pre>_______________________________________________<o:p></o:p></pre>
<pre>CWB mailing list<o:p></o:p></pre>
<pre><a href="mailto:CWB@sslmit.unibo.it">CWB@sslmit.unibo.it</a><o:p></o:p></pre>
<pre><a href="http://liste.sslmit.unibo.it/mailman/listinfo/cwb">http://liste.sslmit.unibo.it/mailman/listinfo/cwb</a><o:p></o:p></pre>
</blockquote>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
</body>
</html>