[CWB] Performance of "expand to"

Hardie, Andrew a.hardie at lancaster.ac.uk
Wed Feb 15 00:03:55 CET 2012


cwb-s-decode $CORPUS -S text_id

should do the trick. (If you have many texts, you should cache this rather than call it every single time).

best

Andrew.

-----Original Message-----
From: cwb-bounces at sslmit.unibo.it [mailto:cwb-bounces at sslmit.unibo.it] On Behalf Of Eros Zanchetta
Sent: 14 February 2012 18:18
To: Open source development of the Corpus WorkBench
Subject: Re: [CWB] Performance of "expand to"

On 02/13/2012 10:54 PM, Hardie, Andrew wrote:
> If you're not working within Perl, (or even if you are it might be 
> simpler), just open up a slave process
>
> cwb-decode -C -s $TEXT_START_CPOS -e $TEXT_END_CPOS $CORPUS -P word
>
> and read the text from the slave's stdout.

This is a great tip, it's exactly what I was looking for.

But how exactly do I find $TEXT_START_CPOS and $TEXT_END_CPOS in CQP (assuming the only thing I know is the text_id)?

Thank you,
Eros
_______________________________________________
CWB mailing list
CWB at sslmit.unibo.it
http://devel.sslmit.unibo.it/mailman/listinfo/cwb


More information about the CWB mailing list