[CWB] Sketch Grammars and macros
Aleksandar Trklja
aleksandar.trklja at univie.ac.at
Wed Jan 29 17:37:16 CET 2020
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/d8d1f83c/attachment.html>
More information about the CWB
mailing list