<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hi Andrés,</p>
<p>Yes, you understand correctly. In this search that I gave as an
example:</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>I want an expression matching any of the patterns within the
first pair of square brackers '[ ]' followed by any words or word
groups that are NOT either "del cauallo" (or any of its
variations), "entierra" or "en tierra". <br>
</p>
<p>If I place the ! before the parenthesis enclosing the rest of
word groups, I still get "muerto en tierra". If I place it before
the parenthesis including the word group "en tierra" (like this ➝
!([word="en"][word="tierra"]) I still get "muerto en tierra". <br>
</p>
<p>I assume the example that appears in the manual (i.e.
[(lemma="go") & !(word="went"%c | word="gone"%c)]; ) works but
I'm wondering whether the '!' operator only works when it appears
within a group enclosed in '[ ]'.</p>
<p>The kind of regular expression I'm using cannot be all included
within '[ ]'. When I don't use the ! operator it works perfectly
and I get "muerto en tierra", "muerto entierra", "muerto del
cavallo", etc. Why can't I negate the whole thing by placing a
single ! somewhere? I've tried placing the ! after the first
parenthesis and it doesn't work either.</p>
<p>JM<br>
</p>
<p><br>
</p>
<blockquote type="cite"
cite="mid:82e1aca978961bb1a27ce5b44128a068.squirrel@mail.chandia.net">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<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 <a class="moz-txt-link-abbreviated" href="mailto:josepm.fontana@upf.edu">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"
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" moz-do-not-send="true">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" moz-do-not-send="true">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"
moz-do-not-send="true"><img
src="http://mail.chandia.net/images/chandia_net.png"
alt="chandia.net" moz-do-not-send="true" border="0"></a> <a
href="https://twitter.com/chandianet" target="_blank"
moz-do-not-send="true"><img
src="http://mail.chandia.net/images/ico_tw.png" alt=""
moz-do-not-send="true" width="20" height="20"></a><br>
<a href="http://chandia.net/content/dungupeyem" title="Analizador
y generador mofológico de
mapudüngun" moz-do-not-send="true">Düngupeyem</a> | <a
href="http://chandia.net/content/iecmap" title="Interfaz
de explotación de corpus del mapudüngun" moz-do-not-send="true">IECMap</a>
| <a href="http://chandia.net/content/isecmap" title="Interfaz
sencilla de explotación de corpus
del mapudüngun" moz-do-not-send="true">ISECMap</a> | <a
href="http://chandia.net/content/nmt" title="Unificador
ortográfico de mapudüngun" moz-do-not-send="true">NMT</a> | <a
href="http://corlexim.cl" title="Corpus lexicográfico
de mapudüngun" moz-do-not-send="true">Corlexim</a><br>
<br>
Desarrollador de:<br>
<a href="https://parles.upf.edu" moz-do-not-send="true">Parles.upf</a>
| <a href="https://iwch.upf.edu" title="Interfície Web de
Consulta d'Horaris UCA TCL UPF" moz-do-not-send="true">IWCH</a>
| <a href="http://amindterapia.com" moz-do-not-send="true">Amind
terapia</a> | <a href="http://koyaktumapuche.net"
moz-do-not-send="true">ONG
Mapuche koyaktu</a> | <a
href="https://parles.upf.edu/llocs/nocando"
moz-do-not-send="true">Nocando</a> | <a
href="https://iac.upf.edu" moz-do-not-send="true">IAC</a> | <a
href="https://iac.upf.edu/cddz" moz-do-not-send="true">CddZ</a>
| <a href="https://iac.upf.edu/isac" moz-do-not-send="true">ISAC</a>
| <a href="http://catcg.upf.edu" moz-do-not-send="true">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>
<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>