[CWB] Left and Right KWIC delimiters

Alberto Simões albie at alfarrabio.di.uminho.pt
Sat Feb 12 14:52:49 CET 2011



On 12/02/2011 10:28, Stefan Evert wrote:
>
>> There are LD and RD to change the<  and>  delimiters
>>
>> Are there any other delimiters I can set to change how anchor words are marked?
>
> I suppose you're referring to the "target" and "keyword" anchors?
>
> Nope, the output formatting options are quite limited.  The idea is that you would prefer to do any flexible reformatting outside CQP (in Perl, Python, ...) anyway.
>
> There is "set ShowTargets  on;", which marks targets and keywords with a highlighted number appended to the respective token.  If you have a supported colour terminal, the number should show up in red; turn of colour ("set Colour off;") to show the number in parentheses instead.
>
> This feature currently seems to work only in interactive screen ouput.  If you redirect the kwic lines into a file, the anchor tokens are not marked at all.

Yes, not very usable from Perl.
I needed to go dig the structure of dump/undump

>
> Best,
> Stefan
>   _______________________________________________
> CWB mailing list
> CWB at sslmit.unibo.it
> http://devel.sslmit.unibo.it/mailman/listinfo/cwb

-- 
Alberto Simões


More information about the CWB mailing list