[CWB] Specific regular expression

Jose Manuel Martinez Martinez jmmtra at gmail.com
Thu Jun 12 11:06:14 CEST 2014


Hi Teresa,

[lemma=".+brausen" %c]

If you want only instances with a prefix.

or

[lemma=".*brausen" %c]

If you want instances either with prefix or without them.

Best,

jmm

On 12/06/14 10:36, Teresa Molés Cases wrote:
> Thanks again. I have another similar question related to the regular 
> expression  [lem =  "(davon|weg)?brausen"%c]
>
> If I want to search for the lemma "brausen" combined with any 
> prefixed, not only "davon" or "weg". Which would be the regular 
> expression?
>
> Thanks a lot for your help!
>
> Teresa
>
>
> El 10/06/2014, a las 10:59, Hardie, Andrew <a.hardie en lancaster.ac.uk 
> <mailto:a.hardie en lancaster.ac.uk>> escribió:
>
>> lem =  ["(davon|weg)?brausen"]
>>
>> is incorrect syntax.
>>
>> Try
>>
>>  [lem =  "(davon|weg)?brausen"%c]
>>
>> Also -- just in case -- double check you are not actually using curly 
>> quotes in the query!
>>
>> best
>>
>> Andrew.
>>
>> *From:*cwb-bounces en sslmit.unibo.it 
>> <mailto:cwb-bounces en sslmit.unibo.it> 
>> [mailto:cwb-bounces en sslmit.unibo.it] *On Behalf Of *Teresa Molés Cases
>> *Sent:* 10 June 2014 09:55
>> *To:* CWB en sslmit.unibo.it <mailto:CWB en sslmit.unibo.it>
>> *Subject:* [CWB] Specific regular expression
>>
>> Hi,
>>
>> I am trying to do a specific query in CQP but I don't get any 
>> sucessful results. I have problems with German prefixed verbs. For 
>> instance, if I want to know which verbs do I find in the corpus with 
>> the verb steem 'brausen', combined with any prefix, how do I make 
>> this query?
>>
>> I've tried the following: lem =  ["(davon|weg)?brausen"] but it 
>> doesn't work.
>>
>> Thank you for your help,
>>
>> Teresa Molés
>>
>>
>>
>> _______________________________________________
>> CWB mailing list
>> CWB en sslmit.unibo.it <mailto:CWB en sslmit.unibo.it>
>> http://devel.sslmit.unibo.it/mailman/listinfo/cwb
>
> Teresa Molés Cases
> Traductora EN/DE/FR > ES/CAT
> teresamoles en gmail.com <mailto:teresamoles en gmail.com>
> 667848390
>
>
>
>
>
>
> _______________________________________________
> CWB mailing list
> CWB en sslmit.unibo.it
> http://devel.sslmit.unibo.it/mailman/listinfo/cwb

------------ pr?xima parte ------------
Se ha borrado un adjunto en formato HTML...
URL: <http://devel.sslmit.unibo.it/pipermail/cwb/attachments/20140612/3c3ddfb8/attachment-0001.html>


More information about the CWB mailing list