[CWB] Question about translations for sentences

Stefan Evert stefanML at collocations.de
Tue Dec 8 10:35:38 CET 2020



> Could you, please, give me some advice. We have a corpus where most of the sentences have translations. It is not a parallel corpus, just translations for particular sentences. What is the best way of integrating those translations into CQPweb? The main purpose is to give users a possibility to see translations for found sentences, maybe as a tooltip or some other way. The possibility of search in translations would be useful, but not mandatory.

Include them as an attribute on the XML element wrapping sentences, or as an additional s-attribute, e.g.

<s trans="THIS IS THE TRANSLATION">
word	pos
word	pos
…
</s>

Then you can enable "s_trans" as "Free translation" attribute in the visualisation settings in CQPweb.

Best,
Stefan



More information about the CWB mailing list