<p>thank you pavel..moc dekuji!</p>
<div class="gmail_quote">Il giorno 11/apr/2013 18:49, &quot;Pavel Vondřička&quot; &lt;<a href="mailto:Pavel.Vondricka@ff.cuni.cz">Pavel.Vondricka@ff.cuni.cz</a>&gt; ha scritto:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
The &#39;within&#39; clause is demontrated here (though not much in detail):<br>
<br>
<a href="http://cwb.sourceforge.net/files/CQP_Tutorial/node26.html" target="_blank">http://cwb.sourceforge.net/files/CQP_Tutorial/node26.html</a><br>
<br>
Best,<br>
Pavel<br>
<br>
&gt; Dear Andrew and Stefan,<br>
&gt; thank you very much for your helpful answers.<br>
&gt; Stefan, your two solutions work both well. What do you exactly mean with<br>
&gt; the &quot;within&quot; clause to add to the query?<br>
&gt; Thank you very much,<br>
&gt; Leontyna<br>
&gt;<br>
&gt;<br>
&gt; 2013/4/11 Stefan Evert &lt;<a href="mailto:stefanML@collocations.de">stefanML@collocations.de</a>&gt;<br>
&gt;<br>
&gt; &gt; On 11 Apr 2013, at 16:18, &quot;Hardie, Andrew&quot; &lt;<a href="mailto:a.hardie@lancaster.ac.uk">a.hardie@lancaster.ac.uk</a>&gt;<br>
&gt; &gt;<br>
&gt; &gt; wrote:<br>
&gt; &gt; &gt; Subcorpus = &lt;p_monthstudy=&quot;[1-7]&quot;&gt;[]*&lt;/p_monthstudy&gt;;<br>
&gt; &gt; &gt; Subcorpus;<br>
&gt; &gt;<br>
&gt; &gt; For technical reasons, it&#39;s better to use this form:<br>
&gt; &gt;         Subcorpus = &lt;p_monthstudy=&quot;[1-7]&quot;&gt;[] expand to p_monthstudy;<br>
&gt; &gt;         Subcorpus;<br>
&gt; &gt;<br>
&gt; &gt; otherwise you&#39;ll lose all longer paragraphs (containing more than 100<br>
&gt; &gt; tokens); on a large corpus, this form will also be substantially faster.<br>
&gt; &gt;<br>
&gt; &gt; If you don&#39;t mind a loss of efficiency, you can run the query on the full<br>
&gt; &gt; corpus and post-filter your results with a global constraint.  Note that<br>
&gt; &gt; if<br>
&gt; &gt; you&#39;re not confident about working out the correct regular expressions to<br>
&gt; &gt; match single- and double-digit months correctly, you can use numeric<br>
&gt; &gt; comparisons in this second version.  Perform this without activating a<br>
&gt; &gt;<br>
&gt; &gt; subcorpus:<br>
&gt; &gt;         ... your query ... :: int(match.p_monthstudy) &gt;= 1 &amp;<br>
&gt; &gt;<br>
&gt; &gt; int(match.p_monthstudy) &lt;= 7;<br>
&gt; &gt;<br>
&gt; &gt; You should perhaps add a &quot;within&quot; clause to the query to make sure that<br>
&gt; &gt; the entire match is within a single paragraph, otherwise it&#39;s not very<br>
&gt; &gt; sensible to filter on the p_monthstudy attribute.<br>
&gt; &gt;<br>
&gt; &gt; Hope this hilft,<br>
&gt; &gt; Stefan<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; _______________________________________________<br>
&gt; &gt; CWB mailing list<br>
&gt; &gt; <a href="mailto:CWB@sslmit.unibo.it">CWB@sslmit.unibo.it</a><br>
&gt; &gt; <a href="http://devel.sslmit.unibo.it/mailman/listinfo/cwb" target="_blank">http://devel.sslmit.unibo.it/mailman/listinfo/cwb</a><br>
_______________________________________________<br>
CWB mailing list<br>
<a href="mailto:CWB@sslmit.unibo.it">CWB@sslmit.unibo.it</a><br>
<a href="http://devel.sslmit.unibo.it/mailman/listinfo/cwb" target="_blank">http://devel.sslmit.unibo.it/mailman/listinfo/cwb</a><br>
</blockquote></div>