[CWB] Make 'cut' treat ranges like 'cat'?
Martin Hammarstedt
martin.hammarstedt at gu.se
Sun Nov 12 11:39:14 CET 2017
Hi,
In a result set with 10 matches, you can ask for matches 5 to 15 by
using 'cat' and you will get the last five hits. Asking for matches 20
to 25 you get no hits. This is useful when the range is coming from a
host application not knowing the number of hits beforehand. However,
using the same ranges with 'cut' results in an error:
> cut Last 5 15
CQP Error:
Invalid range end 15 for cut operator (only 10 matches).
Would it be possible to make 'cut' treat ranges the same was as 'cat',
i.e. not raising errors but instead keeping the matches it can given the
range?
Martin
More information about the CWB
mailing list