[CWB] using the EuroParl aligned corpora
Stefan Evert
stefanML at collocations.de
Fri Sep 11 20:01:11 CEST 2015
> On 29 Aug 2015, at 20:34, John T. Hale <jthale at cornell.edu> wrote:
>
> Excellent, thanks Stefan. Just to confirm -- one has to do this with the web interface, right? There's no support for aligned corpora at the CQP command line?
Ok, let's assume you're running queries on EUROPARL-EN. In command line CQP, the alignment display is treated like other attributes, so simply type
show +europarl-de +europarl-fr;
and German + French translations for each match will be shown on separate lines. You can turn off the display with "show -europarl-de;" etc. Aligned queries work like in the Web interface.
In the current version of CQP, there's a nice trick to display alignment beads. You can set the kwic context to an alignment attribute, e.g.
set context europarl-de;
Then each match will be displayed in the context of its English-German alignment bead.
Hope this helps,
Stefan
More information about the CWB
mailing list