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