[CWB] Question about translations for sentences

Diana Santos dianamsmpsantos at gmail.com
Tue Dec 8 13:43:11 CET 2020


Dear Simon
Thanks a lot. However (maybe this is because I am using a version of cqp
which is too old? 3.0.0) I do not get any results:

The corpus is encoded with eg.
<mwe lema=one=example=of lema pos=N>

</mwe>
and created with the flag -V mwe.
However, when I query
[ ] :: match.mwe="/.*/";
(whatever I put in the regular expression)
I always get
0 matches.

Any suggestion?
Thanks in advance
Diana

Simon Meier-Vieracker <simon.meier-vieracker  tu-dresden.de> escreveu no dia
terça, 8/12/2020 à(s) 12:38:

> 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  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  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  sslmit.unibo.it
>> http://liste.sslmit.unibo.it/mailman/listinfo/cwb
>>
> _______________________________________________
> CWB mailing list
> CWB  sslmit.unibo.it
> http://liste.sslmit.unibo.it/mailman/listinfo/cwb
>
> _______________________________________________
> CWB mailing list
> CWB  sslmit.unibo.it
> http://liste.sslmit.unibo.it/mailman/listinfo/cwb
>
-------------- pr�xima parte ----------
Um anexo em HTML foi limpo...
URL: <http://liste.sslmit.unibo.it/pipermail/cwb/attachments/20201208/e1886597/attachment-0001.html>


More information about the CWB mailing list