<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Thanks Andrews and/or Andreses for your quick responses,<br>
</p>
<p>I have had problems with both of our suggestions. In principle I
would like to use a single ! operator for the whole regular
expression pattern rather than having to add it to every relevant
subpattern. <br>
</p>
<p>But wherever I place the '!' i don't seem to get the desired
results. So, if I do the following:</p>
<p>[(word="f[ei]rid.*")|(word="muert[ao].*")] !(([(pos="S.*") &
(word="d.*")][word=".*el"][word="ca[buv]allo.*"])|[word="entierra"]|([word="en"][word="tierra"]))</p>
<p>one of the first hits I get is:<br>
</p>
<p><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);
font-family: verdana; font-size: 13.333333015441895px;
font-style: normal; font-variant-caps: normal; font-weight:
normal; letter-spacing: normal; orphans: auto; text-align:
-webkit-left; text-indent: 0px; text-transform: none;
white-space: normal; widows: auto; word-spacing: 0px;
-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;
background-color: rgb(194, 211, 218); text-decoration: none;
display: inline !important; float: none;"><span
class="Apple-converted-space"> </span>cayo<span
class="Apple-converted-space"> </span><span
class="Apple-converted-space"> </span></span><b
style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);
font-family: verdana; font-size: 13.333333015441895px;
font-style: normal; font-variant-caps: normal; letter-spacing:
normal; orphans: auto; text-align: -webkit-left; text-indent:
0px; text-transform: none; white-space: normal; widows: auto;
word-spacing: 0px; -webkit-text-size-adjust: auto;
-webkit-text-stroke-width: 0px; text-decoration: none;">muerto<span
class="Apple-converted-space"> </span><span
class="Apple-converted-space"> </span></b><span
style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);
font-family: verdana; font-size: 13.333333015441895px;
font-style: normal; font-variant-caps: normal; font-weight:
normal; letter-spacing: normal; orphans: auto; text-align:
-webkit-left; text-indent: 0px; text-transform: none;
white-space: normal; widows: auto; word-spacing: 0px;
-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;
background-color: rgb(194, 211, 218); text-decoration: none;
display: inline !important; float: none;">en tierra</span></p>
<p>This should be out because the last of the word groups that I
have is ([word="en"][word="tierra"]). Shouldn't the ! operator
have scope over the last group as well?</p>
<p>Josep M.<br>
</p>
<div class="moz-cite-prefix"><br>
</div>
<blockquote type="cite"
cite="mid:CAKTDfKeTwgJoXuzxkDq=AohUO3mpf5ZdGrmniYoE-QeskQYKbA@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div>
<div dir="auto">Hey Josep,</div>
</div>
<div dir="auto"><br>
</div>
<div dir="auto">I'm fairly sure you just use ! if you're not
testing a specific annotation. Place ! before the left
parenthesis of the group you're trying to test. So if you're
trying to test the negation of that entire group, just add ! to
the front of it. See 2.6 in the CQP Tutorial.</div>
<div dir="auto"><br>
</div>
<div dir="auto">All the best,</div>
<div dir="auto"><br>
</div>
<div dir="auto">Andrew</div>
<div dir="auto"><br>
</div>
<div dir="auto"><br>
</div>
<div><br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Tue, Jul 28, 2020 at
11:15 AM Josep M. Fontana <<a
href="mailto:josepm.fontana@upf.edu"
moz-do-not-send="true">josepm.fontana@upf.edu</a>>
wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I don't know whether this is the right forum to ask this
particular kind <br>
of question but I figure there are enough people here with
sufficient <br>
experience to lend me a hand with this problem. If you
cannot answer the <br>
question but you can point me to some other forum/group
where I can find <br>
help, I would appreciate it.<br>
<br>
So, I have the following regular expression to identify a
set of <br>
expressions that can appear in a particular position in the
text. What I <br>
would like to do is to create the negation of this regular
expression. <br>
That is, any string/expression/group of expressions that
does NOT <br>
contain the expressions in these groups.<br>
<br>
I know how to use the != operator for a particular item
(word, pos, <br>
lemma) but where would one insert this operator to have
scope over the <br>
whole group of expressions that match this pattern? Thanks
in advance.<br>
<br>
(([(pos="S.*") & <br>
(word="d.*")][word=".*el"][word="ca[buv]allo.*"])|[word="entierra"]|([word="en"][word="tierra"]))<br>
<br>
<br>
Josep M.<br>
<br>
<br>
_______________________________________________<br>
CWB mailing list<br>
<a href="mailto:CWB@sslmit.unibo.it" target="_blank"
moz-do-not-send="true">CWB@sslmit.unibo.it</a><br>
<a href="http://liste.sslmit.unibo.it/mailman/listinfo/cwb"
rel="noreferrer" target="_blank" moz-do-not-send="true">http://liste.sslmit.unibo.it/mailman/listinfo/cwb</a><br>
</blockquote>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
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>
</body>
</html>