<div>Maybe I'm wrong, but I understand that you want nothing from the ! on....</div>
<div><br /></div>
<div>check this regex from the manual:</div>
<div><br /></div>
<div><span style="left: 139.943px; top: 725.685px; font-size: 18.1818px; font-family:
monospace; transform: scaleX(0.437423);"> [(lemma="go") &
!(word="went"%c | word="gone"%c)];</span></div>
<div><br /></div>
<div><br /></div>
<div>I hope it is what you're looking for, if so, it is just a thing of notation....<br /></div>
<div><br /></div>
<div><br /></div>
<div><br /></div>
El Mar, 28 de Julio de 2020, 19:56, Josep M. Fontana escribió:<br /> <!-- begin
sanitized html -->
<div class="bodyclass">
<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><strong 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></strong><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">
<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 josepm.fontana@upf.edu> 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" moz-do-not-send="true"
target="_blank" title="Este enlace externo se abrirá en una nueva
ventana">CWB@sslmit.unibo.it</a><br /> <a
href="http://liste.sslmit.unibo.it/mailman/listinfo/cwb" rel="noreferrer"
moz-do-not-send="true" target="_blank" title="Este enlace externo se abrirá en una nueva
ventana">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" target="_blank"
title="Este enlace externo se abrirá en una nueva ventana">CWB@sslmit.unibo.it</a> <a
class="moz-txt-link-freetext" href="http://liste.sslmit.unibo.it/mailman/listinfo/cwb"
target="_blank" title="Este enlace externo se abrirá en una nueva
ventana">http://liste.sslmit.unibo.it/mailman/listinfo/cwb</a> </pre>
</blockquote> </div>
<!-- end sanitized html --> <br /><br /><br />_______________________<br />
andrés
chandía<br /><a href="http://www.chandia.net" target="_blank"><img
src="http://mail.chandia.net/images/chandia_net.png" alt="chandia.net" border="0" /></a> <a
href="https://twitter.com/chandianet" target="_blank"><img
src="http://mail.chandia.net/images/ico_tw.png" width="20" height="20" alt="" /></a><br /><a
href="http://chandia.net/content/dungupeyem" title="Analizador y generador mofológico de
mapudüngun">Düngupeyem</a> | <a href="http://chandia.net/content/iecmap" title="Interfaz
de explotación de corpus del mapudüngun">IECMap</a> | <a
href="http://chandia.net/content/isecmap" title="Interfaz sencilla de explotación de corpus
del mapudüngun">ISECMap</a> | <a href="http://chandia.net/content/nmt" title="Unificador
ortográfico de mapudüngun">NMT</a> | <a href="http://corlexim.cl" title="Corpus lexicográfico
de mapudüngun">Corlexim</a><br /><br />Desarrollador de:<br /><a
href="https://parles.upf.edu">Parles.upf</a> | <a href="https://iwch.upf.edu"
title="Interfície Web de Consulta d'Horaris UCA TCL UPF">IWCH</a> | <a
href="http://amindterapia.com">Amind terapia</a> | <a href="http://koyaktumapuche.net">ONG
Mapuche koyaktu</a> | <a href="https://parles.upf.edu/llocs/nocando">Nocando</a> | <a
href="https://iac.upf.edu">IAC</a> | <a href="https://iac.upf.edu/cddz">CddZ</a> | <a
href="https://iac.upf.edu/isac">ISAC</a> | <a href="http://catcg.upf.edu">CatCg</a><br /><span
style="font-size: 18pt; color: rgb(79, 98, 40); font-family: Webdings;">P</span> <span
style="font-size: 10pt; color: rgb(79, 98, 40);">No imprima innecesariamente. ¡Cuide el
medio ambiente!</span>