[CWB] Assigning cqp queries

Stefan Evert stefanML at collocations.de
Tue Dec 15 13:56:11 CET 2015


> On 15 Dec 2015, at 13:29, Trklja, Alex <A.Trklja at exeter.ac.uk> wrote:
> 
> CQP Error:
>        MACRO syntax error (file 'macros.txt', line 2)
> 		
> This is for the example from the CQP Tutorial:
> 
> # this is a comment and will be ignored
> MACRO np(0)
>  [pos = "DT"]    # another comment
>  ([pos = "RB.*"]? [pos = "JJ.*"])*
>  [pos = "NNS?"]
> ;

Works for me, if I copy & paste from your mail.

How exactly do you load the macro?  Perhaps you've got Windows line breaks or something worse in the macro definition file?

S.


More information about the CWB mailing list