Show pageOld revisionsBacklinksBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== CQP Macro Library ====== This is a little space for sharing CQP macros. Each macro here should be listed within a ''<file>'' environment that can be directly copy/pasted to a macro file which can be ready by the CQP. Each macro should be prefixed with a comment block containing the following information: * a short description of what the macros does * (if applicable) a description of the positional and structural parameters on which the macro relies * (if applicable) a description of the parameters and their default values (if applicable) * one or more examples * author information * date of the last change ===== Find passive verb form ===== <file> # Find passive of a particular verb. # # Positional parameters # pos Part-of-Speech (Penn Tagset as in TreeTagger) # # Arguments # $0 Additional positional attribute to match # $1 Pattern # # Example # /passive[lemma, know] # # Author: Richard Eckart # Date: 30 Aug 2007 MACRO passive(2) ( ( [pos="(V([BH]|(B[PZDNG])))"] [pos="VVN"] ) | ( [pos="VH[ZP]"] [pos="VBN"] ) ) [$0="$1" & pos="VVN"] ; </file> user/cqp_macros/start.txt Last modified: 2010/12/03 09:31by eros