<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">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">CWB@sslmit.unibo.it</a><br>
<a href="http://liste.sslmit.unibo.it/mailman/listinfo/cwb" rel="noreferrer" target="_blank">http://liste.sslmit.unibo.it/mailman/listinfo/cwb</a><br>
</blockquote></div></div>