[CWB] Structural attributes in aligned languages

Ruprecht von Waldenfels ruprecht.waldenfels at gmx.net
Tue Mar 24 12:13:43 CET 2015


Dear Stefan,
thanks! I was expecting this would not work out-of-the-box. I don't 
think it's worth making an effort to implement this; as you say, these 
things can be extracted in other ways.
Best!
Ruprecht

Am 24.03.2015 um 09:19 schrieb Stefan Evert:
>> No, I'd like to display the meta data. I convert sgml to xml and then use xslt to display the metadata.
> That's not possible in CQP, I'm afraid. The easiest solution would be to write a Perl script using the CWB::CL module, which takes the list of matches, finds the corresponding regions in the aligned corpus, and prints the relevant metadata.
>
> At some point I harboured the idea of implementing a "translate" command in CQP, which maps a named query result to an aligned corpus, so you can run arbitrary subqueries in the other corpus, have better control over display of aligned regions, and access metadata.  Of course, you still would have to stitch the output for the source corpus and the aligned regions together yourself.
>
> I never got around to doing this because such a translate operation involves quite a lot of housekeeping, but if people feel this would be useful Andrew or I can take another look at it.
>
> Cheers,
> Stefan
>
> _______________________________________________
> CWB mailing list
> CWB at sslmit.unibo.it
> http://devel.sslmit.unibo.it/mailman/listinfo/cwb



More information about the CWB mailing list