[CWB] Bug in the Macro Language?
Richard Eckart
eckart at linglit.tu-darmstadt.de
Thu Aug 30 17:09:59 CEST 2007
Hi there,
I tried to use prototypes to generalize my two passive-verbform
macros into a single one, but I get errors and problems.
1) The prototype values do not seem to allow quotes for something
like $1="la le lo".
2) When I try to specify ".*" or .* I get a Syntax Error.
I'm using Version 2.2.b99 (from SourceForge) on OS X.
# Find passived of a particular verb.
#
# Positional parameters
# pos Part-of-Speech (Penn Tagset as in TreeTagger)
#
# Arguments
# $0 Positional attribute to match (default: word)
# $1 Pattern (default: any)
#
# Example
# /passive[lemma, know]
MACRO passive($0=word $1=.*)
(
(
[pos="(V([BH]|(B[PZDNG])))"]
[]{0,3}
[pos="VVN"]
)
|
(
[pos="VH[ZP]"]
[]{0,3}
[pos="VBN"]
)
)
[$0="$1" & pos="VVN"]
;
Richard Eckart
Darmstadt University of Technology
Institute of Linguistics and Literary Studies
Department of English Linguistics
Hochschulstrasse 1
64289 Darmstadt
Germany
More information about the CWB
mailing list