[CWB] Sketch Grammars and macros
Hardie, Andrew
a.hardie at lancaster.ac.uk
Wed Jan 29 18:31:37 CET 2020
Hi Aleks,
Yes, and it’s the same way – see http://cwb.sourceforge.net/files/CQP_Tutorial/node25.html
though you mind find it easier to use, e.g. node: coll: than numbers.
Or, alternative, you can use the target / keyword anchor points. http://cwb.sourceforge.net/files/CQP_Tutorial/node19.html
By the way, syntactic collocates is something I’ve wanted to add to CQPweb for a while. I have put it on hold for the moment because it will be easier with the Ziggurat engine available because then dependency parser output will be indexable.
best
Andrew.
From: cwb-bounces at sslmit.unibo.it <cwb-bounces at sslmit.unibo.it> On Behalf Of Aleksandar Trklja
Sent: 29 January 2020 16:37
To: CWB at sslmit.unibo.it
Subject: [CWB] Sketch Grammars and macros
Dear all,
I've been trying to create a macro that can classify collocates in terms of their syntactic functions (i.e. subject, direct, indirect object) - something similar to WordSketch in SE. SE uses numbers to mark specific functions.
In the following example "2:" indicates that the final noun in this query serves as the head of the object noun phrase.
1:"VB.?" [tag="DT|PRP$"]{0,1} "JJ.?"{0,3} "NN.*"{0,2} 2:"NN.*"
Here is another example with an explanation from SE.
2:"NN.*" [tag="RB"|tag="VM"]{0,4} [lempos="be-v"] 1:"VBN"
Here the verb in the passive construction (that is, a past participle following the verb “be”) is again marked as the keyword
with the prefix “1:”. The subject is marked with the prefix “2:” and is thus taken to be the underlying object of the verb. Between the subject and the verb “be” we allow the possibility of a string of adverbs (“RB”) and/or modal verbs (“VM”).
Is there a way in CQP macros to mark similar function - for example a noun as a head of an object noun phrase?
Thanks for help!
Aleks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://liste.sslmit.unibo.it/pipermail/cwb/attachments/20200129/16c802b5/attachment.html>
More information about the CWB
mailing list