[CWB] Question about translations for sentences
Simon Meier-Vieracker
simon.meier-vieracker at tu-dresden.de
Tue Dec 8 12:38:10 CET 2020
Given the structure suggested by Stefan, you can try something like this:
[word="word"] :: match.s_trans = "/regex/"
Best, Simon
> Am 08.12.2020 um 12:34 schrieb Diana Santos <dianamsmpsantos at gmail.com>:
>
> Dear Stefan
> I just wonder if there is any possibility (in cqp, not CQPweb) of searching by values of structural attributes.
> I think to recall there was, but I couldn't find it.
> Thank you in advance
> Diana
>
> Stefan Evert <stefanML at collocations.de <mailto:stefanML at collocations.de>> escreveu no dia terça, 8/12/2020 à(s) 10:41:
>
>
> > 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
>
> _______________________________________________
> CWB mailing list
> CWB at sslmit.unibo.it <mailto:CWB at sslmit.unibo.it>
> http://liste.sslmit.unibo.it/mailman/listinfo/cwb <http://liste.sslmit.unibo.it/mailman/listinfo/cwb>
> _______________________________________________
> CWB mailing list
> CWB at sslmit.unibo.it
> http://liste.sslmit.unibo.it/mailman/listinfo/cwb
-------------- n�chster Teil --------------
Ein Dateianhang mit HTML-Daten wurde abgetrennt...
URL: <http://liste.sslmit.unibo.it/pipermail/cwb/attachments/20201208/4ef41df1/attachment.html>
-------------- n�chster Teil --------------
Ein Dateianhang mit Bin�rdaten wurde abgetrennt...
Dateiname : smime.p7s
Dateityp : application/pkcs7-signature
Dateigr��e : 5616 bytes
Beschreibung: nicht verf�gbar
URL : <http://liste.sslmit.unibo.it/pipermail/cwb/attachments/20201208/4ef41df1/attachment.p7s>
More information about the CWB
mailing list